haneef
Newbie level 2
Hello Everyone,
I am working on a motor drive circuit consisting of a PIC 18F458 microcontroller. It has to control two DC servomotors using the motion control IC from HP HCTL 1100. The HCTL 1100 is connected to PORT D through 8 bit address data bus. The PIC considers the HCTL 1100 as a bank of registers. The PIC has to write motor position and command to specific registers of the HCTL. I am finding it difficult in writing the C code to write data from PIC to a specific register of HCTL 1100. For example., if I want to write data 00 to register 05H of HCTL, what is the C instruction to write. Can you please help me with this
I am working on a motor drive circuit consisting of a PIC 18F458 microcontroller. It has to control two DC servomotors using the motion control IC from HP HCTL 1100. The HCTL 1100 is connected to PORT D through 8 bit address data bus. The PIC considers the HCTL 1100 as a bank of registers. The PIC has to write motor position and command to specific registers of the HCTL. I am finding it difficult in writing the C code to write data from PIC to a specific register of HCTL 1100. For example., if I want to write data 00 to register 05H of HCTL, what is the C instruction to write. Can you please help me with this