using other transmit buffers in nxp lpc1766
Discussion in "ARM Development" started by gharibeh Jul 17, 2009.
Fri Jul 17 2009, 03:17 pm
hi
there is a sample code in
C:\Keil\ARM\Boards\Keil\MCB1700\CAN
about using can controller of nxp lpc1766.
but it use transmit buffer 1 for sending the data.
i want to use other buffers (like 2 ,3) for sending the data.
can any one tell me how i should change the code?
i attached the original sample source code to this document.
there is a sample code in
C:\Keil\ARM\Boards\Keil\MCB1700\CAN
about using can controller of nxp lpc1766.
but it use transmit buffer 1 for sending the data.
i want to use other buffers (like 2 ,3) for sending the data.
can any one tell me how i should change the code?
i attached the original sample source code to this document.
Sat Jul 18 2009, 08:53 pm
to change buffer you need to make selection in CMR register.. currently code is just selecting buffer 1 for sending data...
you can rewrite the write function to have selection of buffer you want to use..
make a switch case statement inside..
[Topic moved to ARM Discussion Forum]
you can rewrite the write function to have selection of buffer you want to use..
make a switch case statement inside..
[Topic moved to ARM Discussion Forum]
gharibeh like this.
Powered by e107 Forum System