Okay, I think I might have solved this one. I didn't have the TRIS of the transmit pin configured as an output. I was under the erroneous impression the UART controller trumped control of any port...
I was originally planning on making 2 sets of MCP23017 circuits; 1 for input with debounce, 1 for output. But even with JLCPCB it comes out to $1 / PCB. I'd like to lower my cost more, and not have...
Use a logical analyzer to see what's coming out of the chip. Compare the output of the SEROUT2 to the output of the HSEROUT2 using the logical analyzer. You might think that your output is 115200,...
I've set the hardware config totally manually from the datasheet and via PBP defines (suggested in the supplementary document PIC18FxxK42_notes) and many hybrids of the 2 methods.
You might want to double check that you are setting the hardware communication correctly. I have used the code below to set the HSEROUT/HSERIN for the 18F4550. You might want to check the correct...
Hi all,
Having issues transmitting numeric data out from the 18F26K83 using hserout. No problems with the software serout2, but for some reason all my numerical data is corrupted for hserout ie....
Published on - 31st May 2010 17:24
Number of Views: 6092
Since this question has come up again, I thought I'd throw this module out to the masses. It is something I worked on a while back, with DT's help. Amid life's other priorities, it got put on the shelf to collect dust.
The basic idea is that by adding the module as an INCLUDE and inserting a couple of commands inside your code, you can have the PIC send timing data to your PC via the hardware serial port. It's made for 18F PICs (although some 16Fs may work too). You also need a timer that is not being used for anything else.
1) Instructions are included, as well as a small example.
2) It worked well for me, and as I recall, DT in testing.
3) Use it however you want.
4) I won't be able to offer much support, but figure there are enough knowledgeable folks around here that can help those who need it.
Re: hserout issues on the 18F26K83
Okay, I think I might have solved this one. I didn't have the TRIS of the transmit pin configured as an output. I was under the erroneous impression the UART controller trumped control of any port...
rocket_troy Today, 05:25