Pages: [1]   Go Down
Author Topic: Help hacking the MondoMatrix's library to work with the Duemilanove  (Read 373 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well I purchased a PowerMatrix and ServoMatrix from Sparkfun and the rs485 breakout board. I'm hoping to modify the library so we I can use the powermatrix, ledmatrix, and servomatrix with the Duemilanove.

I've quickly ran into a roadblock, the constants are confusing me. Can someone help guide me through the code below?
Code:
       UCSR1A = ((0 << TXC1) | (1 << U2X1) | (0 << MPCM1));
       UCSR1B = ((0 << RXCIE1) | (0 << TXCIE1) | (0 << UDRIE1) | (1 << RXEN1) | (1 << TXEN1) | (1 << UCSZ12) | (0 << RXB81) | (0 << TXB81));
       UCSR1C = ((0 << UMSEL11) | (0 << UMSEL10) | (0 << UPM11) | (0 << UPM10) | (0 << USBS1) | (1 << UCSZ11) | (1 << UCSZ10) | (0 << UCPOL1));
       UBRR1H = 0;
       UBRR1L = 21;

UCSR1A and a few others have something to do with the arduino megas serial comms but past that I'm clueless. I've searched around for an explanation of the variables but I've come on empty. I believe they have to do with the rx and tx buffers. Some may be specific to the mondomatrix.

Thanks!

Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The most complete description is in the processor's data-sheet...

http://www.atmel.com/dyn/resources/prod_documents/8271S.pdf
Logged

Pages: [1]   Go Up
Jump to: