This thread was originally created by jas823 in the Project forum and it seems to have disappeared while trying to move it.
Please don't pm people with questions, keep it public.
Hello,
I am having a issue with writing digital output to portC of the atmega328. When I write the output it somehow gets cleared and I see it on my logic analyzer. I am using pointers to access the ports since I save the pin mappings for an LCD connection. When using Portd or PortB I have no issues with the code, but when I put any of the pins of the LCD to portC it doen't work. I was wondering if there is a hidden issue with alternative functions that I am not seeing and wanted to know if you seen this issue before? I added my code and two waveforms from the logic analyzer. Waveform.png is the working waveform with the LCD rs pin on portb, and that is changed in the init function. If i put it on portc pin 5, the resulting waveform is the brokenwaveform.png.
Thanks,
Justin
Attachment(s):
jas823