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....
I have used hot glue before to secure a Dupont socket onto a header pin. But, even when I don't use the hot glue the connector never moves. Unless there is a lot of vibration, I don't think the glue...
Published on - 24th April 2010 09:47
Number of Views: 7712
Attached are the Mechanique MicroCode Studio hex files for serial bootloader. These hex files can be loaded into your PIC so that programming can be done through the serial port of the device. Some people have been experiencing problems getting the bootloader hex files to update for new devices via the online update function. Here they are with Mechanique's permission of course.
Typical crystal values are 4 and 20mhz. Meqanique has not published their code for compiling, so you can not modify the crystal value that way, unless you get Meqanique to compile it for you. But there is a way to edit the baud rate value in the hex file, which lets you run at different crystal values. It is fairly easy if you have a PicKit2 programmer. Here are the instructions for modifying the hex file:
So far, all the hex files I have looked at specify the baud rate at address 7D06. But just in case, here is the check: Load the 4 mhz hex file into the PicKit2, and program your chip. Now load the 20 mhz hex into the PicKit2, but select verify. This will highlight the differences between the hex files. On the 18F2520, the first failure (variance) is at address 7D06. The last half of E040 is the serial BRGH=1 setting. 40 hex is 64 decimal, which gives the serial port 19,200 baud at 20 mhz. Since this chip is capable of 40mhz, we can change this setting to 129 decimal for 19,200 baud, which would be 81 hex. With the PicKit2, we can just type in the new value so we edit it to E081. Now you need to enter the correct configuration settings for your chip. This will need to be the PLL settings, and any other things that need to differ to run at this speed. Then hit the write button.
Re: hserout issues on the 18F26K83
Again, if I have it set up as another baud rate, then why is every text string in quotation marks coming through fine?
rocket_troy Yesterday, 23:08Troy