p.s.
f75111 send "F75111_SetWDTEnable(BYTE byteTimer)" including a parameter "timer",
if there's no disable signal (F75111_SetWDTDisable()) to stop it before timer countdown to 0, System will reboot.
if there's disable signal received, resent Enable WDT signal, for a loop to prevent from reboot
Introduction
Initial Internal F75111 port address (0x9c)
defi ne GPIO1X, GPIO2X, GPIO3X to input or output
and Enable WDT function pin
Set F75111 DI/DO ( sample code as below Get Input value/Set output value )
DO: InterDigitalOutput(BYTE byteValue))
DI: InterDigitalInput()
Enable/Disable WDT
Enable : F75111_SetWDTEnable (BYTE byteTimer)
Disable: F75111_SetWDTDisable ()
PULSE mode
Sample to setting GP33, 32, 31, 30 output 1mS low pulse signal.
{
this->Write_Byte(F75111_INTERNAL_ADDR, GPIO3X_PULSE_CONTROL,
this->Write_Byte(F75111_INTERNAL_ADDR, GPIO3X_PULSE_WIDTH_CONTROL,
this->Write_Byte(F75111_INTERNAL_ADDR, GPIO3X_CONTROL_MODE,
this->Write_Byte(F75111_INTERNAL_ADDR, GPIO3X_Output_Data ,
}
Initial internal F75111
void F75111::InitInternalF75111()
{
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO1X_CONTROL_MODE ,0x00);
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO3X_CONTROL_MODE ,0x00);
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO2X_CONTROL_MODE ,0xFF);
this->Write_Byte(F75111_INTERNAL_ADDR,F75111_CONFIGURATION, 0x03);
}
0x00); //This is setting low pulse output
0x01); //This selects the pulse width to 1mS
0x0F); //This is setting the GP33, 32, 31, 30 to output function.
0x0F); //This is setting the GP33, 32, 31, 30 output data.
//set GPIO1X to Input function
//set GPIO3X to Input function
//set GPIO2X to Output function
//Enable WDT OUT function
94
Need help?
Do you have a question about the CI770C and is the answer not in the manual?