2011-02-14, 22:47:14
(This post was last modified: 2024-07-04, 20:57:15 by Mikael Gustavsson.)
(2011-02-01, 00:52:03)Lotusx Wrote: Hello,
Here it is : [broken link]
You can download it on the homepage (bottom right) ; also available in the package.
Lotusx
I've been reading through the firmware manual and I believe that I have set everything up correctly. I am using the dsPIC30F6014A. I set my device name:
.equ __30F6014A, 1
I set my FCY and Baudrate:
.equ FCY, 1842500
.equ BAUDRATE, 115200
I uncommented the line to use UART2:
.equ USE_UART2, 1
I seem to be having problems setting the tris register. Is this the tris register for the output that is also tied to the UART? I don't think I understand what the "tris register of tx enable pin" is. I don't understand what information the firmware is asking for. The enable pin for UART2 is in the U2MODE register and the bits are UARTEN (bit 15), and UTXEN (bit 10). I don't think this is the information it is looking for. Am I way off?
I have tried to build the program but I get the following errors:
ds30loader.s: Assembler messages:
ds30loader.s:335: Error: Invalid operands specified ('bset LATE,#LED0').
ds30loader.s:335: Check operand #2. Operand must be between 0 and 15, inclusive.
ds30loader.s:339: Error: Invalid operands specified ('bset LATE,#LED1').
ds30loader.s:339: Check operand #2. Operand must be between 0 and 15, inclusive.
ds30loader.s:343: Error: Invalid operands specified ('bset LATE,#LED2').
ds30loader.s:343: Check operand #2. Operand must be between 0 and 15, inclusive.
ds30loader.s:347: Error: Invalid operands specified ('bset LATE,#LED3').
ds30loader.s:347: Check operand #2. Operand must be between 0 and 15, inclusive.
Any tips or help would be appreciated.