Hi all,
I am encountering a memory leak of some sorts (Proabbly from arduino String) so I am doing a total code overhaul on my avr.
ATMEGA644PA@ 5V,16MHz
This means getting rid of all my Arduino dependencies and porting the libraries over to more efficient versions.
One big problem I see is an implementation of Software UART on an interrupt pin. For me its PB2.
http://gammon.com.au/Arduino/ReceiveOnlySoftwareSerial.zip
The reason I use this is because my other UARTs are in use.
I've been using this library to do the trick, so I know it is possible. But it requires a pins_arduino.h file to map all my avr pins to something what an arduino would use and the arduino core..
I've tried researching the projects section for avr software uart code but I don't understand any of them.
From what I've seen, it is just an ISR routine that reads in the RX from a serial UARTdevice.
However, I am new to programming an AVR and sort of need a push in the right direction on how to implement this.
Basically I want the same code functionality without that darn Arduino garbage!
Right now I am attempting to adjust thelibrary by mostly hardcoding it for my application.
Just wondering if there is a simple way to do this.