Can someone confirm my understanding on programmable starting address. I have a network with FIVE 16 Channel LOR Controllers followed by a REN48LSD. I want the 1st channel of the REN48LSD to be DMX channel 81. Using the A=(C-1)/8 formula, I come up with Address 10.
Is this the correct number to program the PIC with? Anything after this controller would be REN compatible so I can leave all the other PIC's downstream set to the default
According to what I read yesterday about it that seems correct to me...
The DMX address should be set to... '81'
;; The DMX start address should be between 1 and 505 inclusive === for Ren48LSD it would be 1 and 465...
#define DMX_START_ADDRESS 1
all the math is done for you in the code:
;; data stored in the eeprom. First byte is MSB of our address (0/1), second
;; byte is the LSB of our address (0-255).
ORG 0x2100
de (DMX_START_ADDRESS / 256)
de (DMX_START_ADDRESS & 255)
so - just put the starting address in as a normal decimal address... This is NOT the Renard addressable code - it's the DMX code. You only need this for PIC #1 - PICs 2-6 should be left at a starting address of '1'.
Thanks Brian, That simplifies it a bunch. I can now fully populate my board. I got a shipment of about 20 PIC's today. Enough to populate my 2 add'l boards and some spares.
Well Duh! when you say it like that and I re-read that he was using LOR and LOR is only compatible via DMX? Then I would have realized he was using DMX code and I would have kept my mouth shut. LOL.

