maria_100784
Newbie level 6
First off all Hi. My name is Maria and i-m new to microcontrollers. I have a project made in ASM unsing MPLAB with the 16f877a controller. The device forwards the serial data from a gps module and send it trough the RS232 port on PC , at a speed of 57600 ,over a FTDI cable in real time. What i want to do is to change the code ,instead of sending the data via UART, to save it on a 24c1024b EEPROM. So i have the following code:
So..i need a way to take the data from the TXREG register and put it in eeprom . Hope somebody understands what i want to realise. Thanks.
Code:
WaitSend
btfss TXSTA,TRMT ;Wait to finish transmission
goto WaitSend
call Bank0
movf d1,w
movwf TXREG
return