Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
nz_din24i-r1.h File Reference

Contains hardware specific defines for DIN24I Revision 1 board. More...

Go to the source code of this file.

Macros

#define CLOCK_FREQ   (32000000ul)
 
#define GetSystemClock()   (32000000ul)
 
#define GetInstructionClock()   (GetSystemClock()/2)
 
#define GetPeripheralClock()   GetInstructionClock()
 
#define PIN_SYSLED   _RB6
 
#define LAT_SYSLED   _LATB6
 
#define DIR_SYSLED   _TRISB6
 
#define PULLUP_SYSLED   _CN24PUE
 
#define PULLDOWN_SYSLED   _CN24PDE
 
#define ADC_REF_MV   2500
 
#define ADC_MAX_CHAN_BRD   14
 
#define ADC_CHANNEL_MASK_LOW_BRD   0b1100111100111111
 
#define ADC_CHANNEL_MASK_HIGH_BRD   0
 
#define ADC_CH_AN0   0
 
#define ADC_CH_AN1   1
 
#define ADC_CH_AN2   2
 
#define ADC_CH_AN3   3
 
#define ADC_CH_AN4   4
 
#define ADC_CH_AN5   5
 
#define ADC_CH_AN8   6
 
#define ADC_CH_AN9   7
 
#define ADC_CH_AN10   8
 
#define ADC_CH_AN11   9
 
#define ADC_CH_AN12   10
 
#define ADC_CH_AN13   11
 
#define ADC_CH_AN14   12
 
#define ADC_CH_AN15   13
 
#define ADC_CH_AN16   14
 
#define ADC_CH_AN19   15
 
#define ADC_CH_AN20   16
 
#define ADC_CH_AN21   17
 
#define ADC_CH_AN22   18
 
#define ADC_OPEN_AN0   0x0001
 
#define ADC_OPEN_AN1   0x0002
 
#define ADC_OPEN_AN2   0x0004
 
#define ADC_OPEN_AN3   0x0008
 
#define ADC_OPEN_AN4   0x0010
 
#define ADC_OPEN_AN5   0x0020
 
#define ADC_OPEN_AN8   0x0100
 
#define ADC_OPEN_AN9   0x0200
 
#define ADC_OPEN_AN10   0x0400
 
#define ADC_OPEN_AN11   0x0800
 
#define ADC_OPEN_AN12   0x1000
 
#define ADC_OPEN_AN13   0x2000
 
#define ADC_OPEN_AN14   0x4000
 
#define ADC_OPEN_AN15   0x8000
 
#define SPI_FLASH_SECTOR_SIZE   (4096ul)
 
#define SPI_FLASH_PAGE_SIZE   (256ul)
 
#define SPI_FLASH_SIZE   (0x400000ul)
 
#define self_power   1
 
#define USB_BUS_SENSE   U1OTGSTATbits.SESVD
 
#define XEEPROM_SIZE   (8192)
 
#define XEEPROM_PAGE_SIZE   (32)
 

Detailed Description

Contains hardware specific defines for DIN24I Revision 1 board.

Author
Modtronix Engineering
Compiler:
MPLAB XC16 Compiler

Description

This module includes hardware specific defines for DIN24I Revision 1 board.

Software License Agreement

The software supplied herewith is owned by Modtronix Engineering, and is protected under applicable copyright laws. The software supplied herewith is intended and supplied to you, the Company customer, for use solely and exclusively on products manufactured by Modtronix Engineering. The code may be modified and can be used free of charge for commercial and non commercial applications. All rights are reserved. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license.

THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

File History

2012-08-06, David H. (DH):

  • Initial version

Macro Definition Documentation

#define CLOCK_FREQ   (32000000ul)

Set configuration fuses to default values. If this is done in app, define CONFIGURATION_FUSES_SET to prevent them being set here again.