| ??? 08/01/00 05:48 Read: times |
#4067 - RE: PSD + 8051 |
You can access to PSD Ports using the
following .h file #define DIR_CSIOP 0x8800 // CSIOP // Base address // You have to change the DIR_CSIOP acording to your design /*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx We configure the PA Control Register We choose between: MCU I/O or Address Out 0 --> MCU I/O 1 --> Address Out xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ #define Control_PA DIR_CSIOP+0x02 /*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx We configure the port pins like input or output: Direction: 0--> Input 1--> Output xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ #define Direction_PA DIR_CSIOP+0x06 /*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx We configure the pin port Type Drive Select: 0--> CMOS 1--> Open Drain xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ #define DriveSelect_PA DIR_CSIOP+0x08 At that's all If you have any question please e-mail me. Best regards Jesus Haro |
| Topic | Author | Date |
| PSD + 8051 | 01/01/70 00:00 | |
| RE: PSD + 8051 | 01/01/70 00:00 | |
RE: PSD + 8051 | 01/01/70 00:00 |



