IRPyro Micro controller template only
Routines to enable the MCU to use the USART and the I2C
|
This section describes how to use the IRPyro API. It part one describe the use "as is" and part two describe the customization process of the GPIO, I2C and User modules for use with other micro controllers.
For information on the sensor itself see: "IRPyro Sensor Reference Manual.pdf"
The PCB is connected to the MCU as follows:
For an IRPyro demo board the SDA and SCL pins are located on PORTB: 7,6
For an IRPyro demo board the CS pins are located on PORTB: 1,5,4,3
For an IRPyro demo board the INT pins are located on PORTA: 4,5,6,7
IRPyro demo boards PIN assignments
See Micro_controller_template.c
The MCU to be used should be capable of providing:
Optionally
IRPyro break out board PIN assignments (IRPYxxxxx-B1) VDD - pin 1 pin 2 - NC SCL - pin 3 pin 4 - SDA CS - pin 5 pin 6 - INT SYNC - pin 7 pin 8 - CLK NC - pin 9 pin 10 - GND
See Micro_controller_template.c
See Micro_controller_template.c
The example configure the MCU. A serial terminal like RealTerm or similar is useful to see the messages generated.
A basic USART implementation allows the examples to send data to RealTerm using UART_stream_char_send() for plain text and UART_stream_binary_send()
The settings for serial communication are as follow:
Baud Rate: 921600 Parity: None Data Bits: 8 Stop Bits: 1 Hardware Flow Control: None Software Flow Control: None
The following examples are included:
Released as a stand alone project for the KEIL compiler.