/* * Please Insert the following code into a "Code Block" * to be used as the first block of the "\Main_Program" */ /********************************************************** * From Datasheet ST52F510/F513/F514" * * ver. 2.3 May 2004 * * Pag: 53/127 * * Row: 27 * * Col: left * * * * To avoid side effects, the Configuration Registers * * are latched only when the Data Direction Register * * (PORT_x_DDR) is written. For this reason this * * register must be always written when modifying the * * pin configuration... * * * *********************************************************/ #ifndef PORT_A_DDR #warning : defining PORT_x_DDR #define PORT_A_DDR _cnfReg_26 #define PORT_B_DDR _cnfReg_30 #define PORT_C_DDR _cnfReg_34 #endif #ifndef PORT_A_DDR_iv #warning : defining PORT_x_DDR_iv #define PORT_A_DDR_iv _iv_c26 #define PORT_B_DDR_iv _iv_c30 #define PORT_C_DDR_iv _iv_c34 #endif /*********************************************************/ #warning : writing PORT_x_DDR for PORTS ConfReg latching PORT_A_DDR = PORT_A_DDR_iv; PORT_B_DDR = PORT_B_DDR_iv; PORT_C_DDR = PORT_C_DDR_iv; /*********************************************************/