Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 5201 matches
www.mcselec.com Forum Index
Author Message
  Topic: MCS Bootloader for XMEGA 32E5 not uploading flash program
albertsm

Replies: 44
Views: 1545

PostForum: BASCOM-AVR   Posted: Fri Aug 13, 2021 6:28 pm   Subject: MCS Bootloader for XMEGA 32E5 not uploading flash program
another mystery solved Very Happy
actually i gave up using cheap parts after finding wires without connections, connectors that did not connect, etc. But when i got fake parts that was the limit for me. i ...
  Topic: why my new instructions are being ignored ?
albertsm

Replies: 2
Views: 223

PostForum: BASCOM-AVR   Posted: Mon Aug 02, 2021 6:49 pm   Subject: why my new instructions are being ignored ?
the gray text is dead code coloring. and as written in the help : it is always compiled. Not the be confused with excluded code which is not compiled.
in order to find the problem a sample program t ...
  Topic: Why the bascom 2.0.8.3 doesn't work with ATMEGA48PB ?
albertsm

Replies: 2
Views: 220

PostForum: BASCOM-AVR   Posted: Fri Jul 30, 2021 2:47 pm   Subject: Why the bascom 2.0.8.3 doesn't work with ATMEGA48PB ?
1 : there is an important rule on this forum ; include some code. And this code should be either posted as is when it is small. Or included as a ZIP file when it is a lot of code.
When you post an im ...
  Topic: XTINY 414 TCA Timer
albertsm

Replies: 4
Views: 170

PostForum: BASCOM-AVR   Posted: Fri Jul 30, 2021 9:50 am   Subject: XTINY 414 TCA Timer
there is not other xtiny help.


In normal AVR processors the timers had an alias to the counter register named TIMER0, TIMER1 , etc.
Thus TIMER1 would access TIMER1 registers TCNT1L and TCNT1H. ...
  Topic: XTINY 414 TCA Timer
albertsm

Replies: 4
Views: 170

PostForum: BASCOM-AVR   Posted: Thu Jul 29, 2021 6:37 pm   Subject: XTINY 414 TCA Timer
in the normal AVR timers were similar, well at least at the begin. It made some sense to have an alias.
but now there are different timers and different names. For Xtiny there is no alias to a short ...
  Topic: MCS Bootloader for XMEGA 32E5 not uploading flash program
albertsm

Replies: 44
Views: 1545

PostForum: BASCOM-AVR   Posted: Thu Jul 29, 2021 8:07 am   Subject: MCS Bootloader for XMEGA 32E5 not uploading flash program
yes it looks that way but there can be many reasons for that. since there is a problem a step by step approach is required to find the problem. it is similar how i developed these loaders in the first ...
  Topic: MCS Bootloader for XMEGA 32E5 not uploading flash program
albertsm

Replies: 44
Views: 1545

PostForum: BASCOM-AVR   Posted: Wed Jul 28, 2021 9:23 am   Subject: MCS Bootloader for XMEGA 32E5 not uploading flash program
if you call the boot process from the main app there is no need to set the reset vector to the bootloader.
but i would strongly suggest to use the reset vector and use the fuse. when an app is not re ...
  Topic: ATTINY1604 serial port
albertsm

Replies: 8
Views: 246

PostForum: BASCOM-AVR   Posted: Mon Jul 26, 2021 8:53 am   Subject: ATTINY1604 serial port
and from the help for config com xtiny :

It is preferred to use CONFIG COM instead of using $BAUD.

[PICTURE notice.jpg]It is important that you specify all parameters of CONFIG COM. Do not omit ...
  Topic: ATTINY1604 serial port
albertsm

Replies: 8
Views: 246

PostForum: BASCOM-AVR   Posted: Mon Jul 26, 2021 8:47 am   Subject: ATTINY1604 serial port
yes normally that would be true and it is for almost all parameters.
but since the mode is important for the baud calculation, it must be provided.
  Topic: ATTINY1604 serial port
albertsm

Replies: 8
Views: 246

PostForum: BASCOM-AVR   Posted: Sat Jul 24, 2021 8:02 pm   Subject: ATTINY1604 serial port
you forgot to specify the mode : Mode = Asynchroneous
if you do not specify mode the baud will not be set.
  Topic: ATTINY1604 serial port
albertsm

Replies: 8
Views: 246

PostForum: BASCOM-AVR   Posted: Sat Jul 24, 2021 7:06 am   Subject: ATTINY1604 serial port
as simple as possible means also without the interrupt and buffered mode.
you have a problem with the uart right? so the best thing is to start with the simple mode as i posted before.

then when ...
  Topic: ATTINY1604 TCA0 & TCB0
albertsm

Replies: 11
Views: 235

PostForum: BASCOM-AVR   Posted: Fri Jul 23, 2021 8:44 pm   Subject: ATTINY1604 TCA0 & TCB0
ok, i got it. there are 2 things.
the config can use this optional sync : Config Tcb0 = Pwm , Prescale = Tca0 , Run = On , Ccmp_output = Enabled , Syncupdate = Tca0
But a bug in silicon prevents i ...
  Topic: ATTINY1604 serial port
albertsm

Replies: 8
Views: 246

PostForum: BASCOM-AVR   Posted: Fri Jul 23, 2021 8:34 pm   Subject: ATTINY1604 serial port
1: you best use a simple sample. i always start with the real simple serial.bas

'name : serial.bas
'copyright : (c) 1995-2021, MCS Electronics
' ...
  Topic: ATTINY1604 TCA0 & TCB0
albertsm

Replies: 11
Views: 235

PostForum: BASCOM-AVR   Posted: Fri Jul 23, 2021 1:24 pm   Subject: ATTINY1604 TCA0 & TCB0
i dont get what you mean. please show the CONFIG statement and where it writes the wrong setting.
maybe you refer to the second sample? please note that i did not specify sync option there. if you do ...
  Topic: ATTINY1604 TCA0 & TCB0
albertsm

Replies: 11
Views: 235

PostForum: BASCOM-AVR   Posted: Fri Jul 23, 2021 9:58 am   Subject: ATTINY1604 TCA0 & TCB0
In your case you need to write 21dec to CTRLA and not 5dec.
The option in config "SYNCUPDATE" only sets this bit 4 in CTRLA. it need to be used with other settings.
It is not clear to me if you mea ...
 
Page 3 of 347 Goto page Previous  1, 2, 3, 4 ... 345, 346, 347  Next
All times are GMT + 1 Hour
Jump to: