Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 376 matches
www.mcselec.com Forum Index
Author Message
  Topic: Bootloader secrets I do not understand
Arera

Replies: 1
Views: 442

PostForum: BASCOM-AVR Archive   Posted: Fri Jun 13, 2014 1:37 pm   Subject: Bootloader secrets I do not understand
Hi all,

my DIY bootloader does not work....
I copy the new prog to an EEPROM and flash from there. Works so far.

Here's my problem:

If the lenght of the prog (the used flash) changes, I noti ...
  Topic: EEPROM
Arera

Replies: 6
Views: 620

PostForum: BASCOM-AVR Archive   Posted: Sat Jun 07, 2014 10:05 am   Subject: EEPROM
No, because you leave the loop after 100.000 cycles! There is no real difference compared to your first post, all aswers apply the same.
I guess you need to save values in cade of a powerdown?
  Topic: EEPROM
Arera

Replies: 6
Views: 620

PostForum: BASCOM-AVR Archive   Posted: Fri Jun 06, 2014 10:31 pm   Subject: EEPROM
The EEPROM is guarateed to be reliable for 100000 wr/erase cycles.
If that's your point, then you are right.
But in your sample, you assign the same value 3 for 100000 times.
I am not shure if t ...
  Topic: Watchdog ATmega128
Arera

Replies: 3
Views: 289

PostForum: BASCOM-AVR Archive   Posted: Sun May 11, 2014 9:18 am   Subject: Watchdog ATmega128
mohammads suggestion is a good example of how NOT to do it.

He waits a lot in the main routine and resets the WD at every corner.
The idea of a WD is to check if the routine runs as it is supposed ...
  Topic: Warning: accessing bit variables are not atomic
Arera

Replies: 11
Views: 1166

PostForum: BASCOM-AVR Archive   Posted: Tue May 06, 2014 12:20 pm   Subject: Warning: accessing bit variables are not atomic
I'm confused, and I do not understand a thing.....
I may not use bit-vars in ISRs? I may not change any vars in ISRr.
I have to care to make vars atomic???? What does that mean? I read the interrupt ...
  Topic: Watchdog ATmega128
Arera

Replies: 3
Views: 289

PostForum: BASCOM-AVR Archive   Posted: Sat Apr 26, 2014 1:50 pm   Subject: Watchdog ATmega128
The WD is reset once in a full cycle of the main routine. A well structured main routine runs fast and often. If your main routine takes more than 2048ms, than your prog is really big or you could try ...
  Topic: wait vs timer
Arera

Replies: 21
Views: 984

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 22, 2014 8:51 pm   Subject: wait vs timer
Ians and my posts crossed. Ian is THE ONE to ask how to insert a timer for this specific purpose.
Come on Ian, post the link!
  Topic: wait vs timer
Arera

Replies: 21
Views: 984

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 22, 2014 5:58 pm   Subject: wait vs timer
Hi jodank and welcome to this friendly forum!
Your question contains 100 subquestions...
WAIT stops your prog for a given time. That is sometimes useful for microsec to single secs.
Do not wait fo ...
  Topic: Migrating from Pic Basic Pro to Bascom AVR
Arera

Replies: 6
Views: 343

PostForum: BASCOM-AVR Archive   Posted: Wed Mar 12, 2014 11:01 pm   Subject: Migrating from Pic Basic Pro to Bascom AVR
Hi,
I used Pic Basic 10 years ago. It is easy to use, but you cannot do a lot with it. It might be useful to by used at scool to show what a micro is and how a language works, that is it. But at leas ...
  Topic: Atmega8 and external oscilator
Arera

Replies: 8
Views: 394

PostForum: BASCOM-AVR Archive   Posted: Fri Feb 28, 2014 1:01 pm   Subject: Atmega8 and external oscilator
Hi!
there is a great tool avaliable to generate the code snippets you need:
google "planet ian" and find the Timer Calculator 1.25 under software-tools.
Ians tool showes one of many ways to use tim ...
  Topic: Sequential brake light hardware ??
Arera

Replies: 11
Views: 420

PostForum: BASCOM-AVR Archive   Posted: Sun Jan 05, 2014 11:36 pm   Subject: Sequential brake light hardware ??
The voltage in a car is far from being clean! You will encounter noise and spikes of unpedictable shape an voltage. Recon 100V spikes at least. That means, a simple R-R divider is not an option. Also ...
  Topic: Attempt to write Bootloader for flash-update via LAN
Arera

Replies: 6
Views: 268

PostForum: BASCOM-AVR Archive   Posted: Wed Nov 13, 2013 9:58 pm   Subject: Attempt to write Bootloader for flash-update via LAN
I've got the network bootloader working!

Thanks SIX1 for sharing your code, but I found that the whole task depends a lot from the HW and the rest of the project.
Different ext. EEPROM use differe ...
  Topic: atmega8 to atmega168 porting problem
Arera

Replies: 15
Views: 1501

PostForum: AVR   Posted: Wed Nov 06, 2013 11:18 am   Subject: atmega8 to atmega168 porting problem
Here we go again:
DON'T WASTE TIME IN ISR!
just set flag (bit) in the ISR.
Check for that flag in the main routine and do your stuff if it's set. Don't forget to reset the flag after your are done ...
  Topic: atmega8 to atmega168 porting problem
Arera

Replies: 15
Views: 1501

PostForum: AVR   Posted: Tue Nov 05, 2013 12:00 pm   Subject: atmega8 to atmega168 porting problem
Signal forming is a good point, but I think doing that on the SW side using any kind of debounce should do.
What I woory about is the potential on the input.
If Vcc drops, there is no more Vcc. Bu ...
  Topic: atmega8 to atmega168 porting problem
Arera

Replies: 15
Views: 1501

PostForum: AVR   Posted: Mon Nov 04, 2013 2:10 pm   Subject: atmega8 to atmega168 porting problem
To tell weather your problem is HW or SW, I would change R23 from 0R to 1K. Then pull down the regarding input, while power is still up and stable.
If the code works fine, you need more capacitiy on ...
 
Page 4 of 26 Goto page Previous  1, 2, 3, 4, 5 ... 24, 25, 26  Next
All times are GMT + 1 Hour
Jump to: