[[ANT]]

* Library for PIC24F [#vdabf719]

>
This page introduces  ANT library for PIC24F series and its sample code. PIC24F is a 16bit microcontroller (IC) and produced by Microchip Technology Inc. The source code is compiled and executed at PIC24FJ64GA002. This library is still alpha version, and there is possibly a lot of bug in the code.~

>
- ant.h
-- This is a header file, which lists the API functions for an ANT chip.

>
- ant.c
-- This is C source code for API functions, which enable to communicate with the ANT chip. To execute this code, a function, which works with UART1 that listed at uart.c, is required. 

>
- uart.h
-- The is a header file listing the API that works with UART.

>
- uart.c
-- C source code for API functions, which work with UART.

>
To exchange the commands and results with ANT chip, ant.c calls the functions which works with uart1 listed on uart.c. In this example, both uart.c and uart.h are required.~
At transmitting information, uart.c acceses via polling. uart.c also uses interrupt to receive the information since the reception of data is managed by interrupt-driven.~
The pins, which are re-mappable, are assigned to RX and TX of UART. In uart.c, there are comments about pin assignments, but the assignments of re-map pins can be changed according to your PCB.~ 
At the example shown below, RTS of ANT module is assigned to RA3 and performs polling by software. There is no hardware flow. The example can be modified based upon your circuit.~

** Example [#f839f2b7]



Front page   New List of pages Search Recent changes   RSS of recent changes