pic18fdevices.h File Reference
This file includes the interfaces to the hardware components which are integrated in the pic18f4550 chip. More...
#include "mkernel_config.h"
#include "typedefs.h"
#include "dev.h"
Go to the source code of this file.
Detailed Description
This file includes the interfaces to the hardware components which are integrated in the pic18f4550 chip.
Even thought the pic18f4550 contains an master synchronous port which can be operated in the I2C or the SPI mode we provide only an driver for the I2C interface.
THe I2C interface is operated in the master mode, which means the processor is the master of all connected devices.
The driver implementation assumes that two addresses are needed, one address (8Bit) which addresses the node on the i2c bus and a second address which is used to address internal registers of the attached hardware. This address is always send to the device first to select an internal register in the attached device.
The Analog Digital Converter allowes access to all Analog Inputs. It runs with an aquisition time of 12 Tad and FOSC/32. The assumption is that the measurement result is return in left justified format.
If initialized, the pin A02 will be the output if the reference generator. The output range of the generator can be selected.
If initialitzed A0/A3 and A1/A2 are used by the comperators as analog input.
The pulse wide modulation module is implemented by means of T2 and CPP2 which provides hit output to C1.
Definition in file pic18fdevices.h.
Generated on Mon Sep 29 19:56:48 2008 for mKernel by
1.4.6