Post Created date
AVR Studio 4 crashes when "start debugging"
Well, that is a weird program.  It does nothing but initialize two registers.  Have you tried any other program like a blinker?:    while (1) { turn on LED,...
Wednesday, 15 April 2020 - 17:07
Atmega32 PWM tone generation
The PWM channel uses the duty cycle of the pulse and a capacitor to create a discrete analog voltage level.   An analog waveform gets created by changing the PWM duty...
Monday, 13 April 2020 - 14:36
Converting basic servo code from C code to Arduino
Try taking the while(1) {} out of the loop() function.    Make the offset a define statement.    #define OFFSET 600   void loop() {    set...
Sunday, 12 April 2020 - 23:31
Push button latch
Push buttons are surprisingly difficult to write code for.  They "bounce" on the milli-Second level when pressed or released. The CPU is fast enough to treat each of these on...
Sunday, 12 April 2020 - 14:10
how can make twoway communication Rx Tx uart between 2 atmega?
   I don't need to start my own school because the only real school that people need to go to in order to learn modern embedded-system programming doesn't exist as a...
Saturday, 11 April 2020 - 19:34
[Help] The PWM output on OC2A is controlled by the data value written to the OCR2A register.
Remove all the references to a LM35 or a Light_dependent resistor.  The "code spec" just says "control an LED's brightness using PWM".  It doesn't say anything about...
Saturday, 11 April 2020 - 18:51
how can make twoway communication Rx Tx uart between 2 atmega?
I recommend that you use the One-Wire temperature sensor  DS18B20 instead of the LM35.  You can string eight of the DS18B20 sensors together over a good distance and...
Friday, 10 April 2020 - 22:24
RGB LED Matrix ?
Do something sensible and use 64 WD2812b NeoPixel programmable LED chip modules.  They will all string together.   It takes about 27 microseconds to send the RGB...
Friday, 10 April 2020 - 15:43
how can make twoway communication Rx Tx uart between 2 atmega?
If I stand on the roof of a ten-story building, and start the CodeVision USART code at my feet, then with good binoculars I can see the end of the code. If I do something sensible...
Friday, 10 April 2020 - 15:26
C code for micro servo sg90
Why do all the schools insist on using Studio instead of Arduino?   Arduino makes the hardware easy so that the programmer can concentrate on the application, not the...
Tuesday, 7 April 2020 - 00:18
atmega324PA not working at higher than 1MHZ freq
When you programmed the high fuse to 0xD9, you turned off the SPIEN fuse.  This is the configuration switch that allows the AVR CPU to be programmed through the SPI pins [...
Sunday, 5 April 2020 - 22:02
ADS115 Datasheet
I don't think that the flowchart is correct at the very bottom.  It is my understanding that the Slave will always acknowledge with an assertion (the line gets pulled low to...
Sunday, 5 April 2020 - 13:47

Pages