請先看『使用說明』
IO Device:F81801 DIO under Windows
From LEXWiKi
(Difference between revisions)
(New page: == The Sample code source you can download from == == How to use this Demo Application == == Introduction == === Test ===) |
(→Introduction) |
||
| Line 1: | Line 1: | ||
| - | |||
== The Sample code source you can download from == | == The Sample code source you can download from == | ||
| Line 6: | Line 5: | ||
== Introduction == | == Introduction == | ||
| - | === | + | === Initial internal F81801 === |
| + | void F81801U_Init() | ||
| + | { | ||
| + | F81801U_Write(Logic_Device_Number_Register, GPIO_Device_Configuration_Registers);// GPIO Device Configuration Registers (LDN CR06) | ||
| + | |||
| + | F81801U_Write(GPIO3_Output_Enable_Register, 0xf0);//GPIO34~GPIO37 OUTPUT SET / GPIO30~GPIO33 INPUT SET | ||
| + | F81801U_Write(GPIO3_Drive_Enable_Register, 0xf0);//GPIO34~GPIO37 DRIVE SET | ||
| + | |||
| + | F81801U_Write(Logic_Device_Number_Register, WDT_Registers); | ||
| + | F81801U_Write(WDTDE, 0x01); | ||
| + | F81801U_Write(WDT_REG1, 0x40); | ||
| + | F81801U_Write(WDOUT_EN, 0x80); | ||
| + | } | ||
Revision as of 14:48, 15 August 2019
Contents |
The Sample code source you can download from
How to use this Demo Application
Introduction
Initial internal F81801
void F81801U_Init()
{
F81801U_Write(Logic_Device_Number_Register, GPIO_Device_Configuration_Registers);// GPIO Device Configuration Registers (LDN CR06)
F81801U_Write(GPIO3_Output_Enable_Register, 0xf0);//GPIO34~GPIO37 OUTPUT SET / GPIO30~GPIO33 INPUT SET
F81801U_Write(GPIO3_Drive_Enable_Register, 0xf0);//GPIO34~GPIO37 DRIVE SET
F81801U_Write(Logic_Device_Number_Register, WDT_Registers);
F81801U_Write(WDTDE, 0x01);
F81801U_Write(WDT_REG1, 0x40);
F81801U_Write(WDOUT_EN, 0x80);
}
