Oznog
Active Member
I have a project where I'd sure like to have one PIC talk to another PIC versus serial communication. However, one PIC is already talking to a GPS through the serial port and I'm not going to be getting into those wild PICs with 2 USARTs, the package is not convenient and they're a bit too far out of the mainstream for me.
So one of them can use its free USART but the other would have to bit bang either the GPS or the PIC-to-PIC port in software. That one would be a PIC18F420 running at 40MHz clock (10MHz instruction cycle). Is this even possible? The GPS runs at 4800 baud, which is slow so it sounds easier, but I also wanted to use that connection for the bootloader and it would be somewhat dicey to write this bit banging stuff into the bootloader. So I'd probably lean towards the PIC-to-PIC port which might need to run a bit faster, although my initial estimates show a slower speed might might do the job.
So one of them can use its free USART but the other would have to bit bang either the GPS or the PIC-to-PIC port in software. That one would be a PIC18F420 running at 40MHz clock (10MHz instruction cycle). Is this even possible? The GPS runs at 4800 baud, which is slow so it sounds easier, but I also wanted to use that connection for the bootloader and it would be somewhat dicey to write this bit banging stuff into the bootloader. So I'd probably lean towards the PIC-to-PIC port which might need to run a bit faster, although my initial estimates show a slower speed might might do the job.