Timeline for How to properly set HIGH/LOW PORTC3 on ATmega32A?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 3, 2016 at 22:48 | vote | accept | 4pie0 | ||
Jul 3, 2016 at 22:47 | history | edited | 4pie0 | CC BY-SA 3.0 |
updated, picture added
|
Jul 3, 2016 at 21:55 | answer | added | kkrambo | timeline score: 3 | |
Jul 3, 2016 at 20:55 | comment | added | 4pie0 | @Tom Carpenter But I got 4.77V as LOW voltage on PORTC3 and 4.21V as HIGH? These values are simply wrong. | |
Jul 3, 2016 at 20:43 | comment | added | Tom Carpenter |
This is not the cause of any issue (your code is fine), but its handy to know: you can reduce the three writes to PORT C in a row to be a single one of: PORTC &= ~((1 << PC3) | (1 << PC1) | (1 << PC0)); for all to be 0 and PORTC |= ((1 << PC3) | (1 << PC1) | (1 << PC0)); for all to be 1.
|
|
Jul 3, 2016 at 20:40 | comment | added | Tom Carpenter | Check for shorts in the breadboard. | |
Jul 3, 2016 at 20:15 | history | asked | 4pie0 | CC BY-SA 3.0 |