User manual
22
Function GetIOStatus(uint8_t PortNumber) checks the state of the digital input number passed as a
parameter returns the state of that input as one of three states: FLOATING, LOGIC_HIGH, or
LOGIC_LOW
5.9 Frequency Counter inputs:
The variable FrequencyIn1 and FrequencyIn2 contain the value frequency of the signal applied
to Frequency counter inputs 1 and 2 respectively. The code counts the pulses fed into the
inputs and computes the frequency every 0.1 second.
5.10 1-Wire Communications:
1-Wire communications is implemented using bit banging. A separate file PP_1Wire.c contains
the functions used in writing and reading bytes over 1Wire interface. The function
App_Task_1Wire() shows an example that reads the temperature from DS18B20 temperature
sensor.
11- References:
[1] Microchip MPLAB Harmony Documentation: Applications Help/RTOS Demonstrations/FREERTOS
Demonstrations/cdc_com_port_dual
[2] Microchip MPLAB Harmony Documentation: Applications Help/RTOS Demonstrations/FREERTOS
Demonstrations/tcpip_client_server
[3] Microchip MPLAB Harmony Documentation: Applications Help/TCPIP Demonstrations/Demonstrations/
tcpip_client_server
[4] Microchip MPLAB Harmony Documentation: Applications Help/ USB Demonstrations/ Demonstrations/ Device/
cdc_com_port_single