I've decided to give FlashForth a try. I've got some experience with programming PICs in assembly language but am not a professional programmer.
I'm building a board with a dsPic30F4012. I shall use U1TX and U1RX pins for serial transmission. I shall also wire XON/XOFF signals, but do not know what pins they must be connected to.
Can anyone help? Is there a tutorial document for beginners?
Thanks,
Antonio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
thanks for your answer, I got confused with CTS/RTS signals.
I wired a board with a DSPIC30F. The problem is, it refuses to talk to the computer on the serial port.
Here's my config : dsPic 30F4012 with 4MHz crystal and XT_PLL16 ; speed is 38461bps which is very near 38400bps.
I have successfully compiled FF4.7 then programmed and verified the chip with ICD2.
When I connect the board, the supply pins are correctly powered. MCLR pin is high. The oscillator is running, I see a square wave on the scope.
I have a USB to TTL adapter which is working OK : sent characters can be seen on the scope and a loopback test with a jumper batween TX/RX pins works OK.
I connect the USB/TTL adapter on the ICSP socket (pins are the same) and have checked multiple times that there is no mismatch between RX and TX pins.
I use TeraTerm for sending chars to the board but I do not receive anything. Is there a required sequence for initiating the transmission?
Thanks,
Antonio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK - problem solved ; it looks like the default UART setting in flashforth is set to alternate ; changing this setting to 0 solved the problem.
now I can replay the "sample session for dsPIC 30F" but the "see" word does not work (not defined in ff4.7?)
Antonio.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The see word is not in the kernel.
You have to compile it yourself.
Send the ct.txt and the see.txt files to the serial line from TeraTerm.
That will compile the needed words.
If there is too much delay on the USB/serial adapter for XON/XOFF to work correctly
you can add a TX delay in TeraTerm that solves that problem.
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've decided to give FlashForth a try. I've got some experience with programming PICs in assembly language but am not a professional programmer.
I'm building a board with a dsPic30F4012. I shall use U1TX and U1RX pins for serial transmission. I shall also wire XON/XOFF signals, but do not know what pins they must be connected to.
Can anyone help? Is there a tutorial document for beginners?
Thanks,
Antonio
Hi Antonio,
The XON/XOFF signals do not need any pins at all :-)
These are just codes sent by the PIC on the serial TX pin.
Cheers Mike
Hi,
thanks for your answer, I got confused with CTS/RTS signals.
I wired a board with a DSPIC30F. The problem is, it refuses to talk to the computer on the serial port.
Here's my config : dsPic 30F4012 with 4MHz crystal and XT_PLL16 ; speed is 38461bps which is very near 38400bps.
I have successfully compiled FF4.7 then programmed and verified the chip with ICD2.
When I connect the board, the supply pins are correctly powered. MCLR pin is high. The oscillator is running, I see a square wave on the scope.
I have a USB to TTL adapter which is working OK : sent characters can be seen on the scope and a loopback test with a jumper batween TX/RX pins works OK.
I connect the USB/TTL adapter on the ICSP socket (pins are the same) and have checked multiple times that there is no mismatch between RX and TX pins.
I use TeraTerm for sending chars to the board but I do not receive anything. Is there a required sequence for initiating the transmission?
Thanks,
Antonio
OK - problem solved ; it looks like the default UART setting in flashforth is set to alternate ; changing this setting to 0 solved the problem.
now I can replay the "sample session for dsPIC 30F" but the "see" word does not work (not defined in ff4.7?)
Antonio.
The see word is not in the kernel.
You have to compile it yourself.
Send the ct.txt and the see.txt files to the serial line from TeraTerm.
That will compile the needed words.
If there is too much delay on the USB/serial adapter for XON/XOFF to work correctly
you can add a TX delay in TeraTerm that solves that problem.
Mike