Functional Overview
lcd_load(ptr, offset, length)
lcd_contrast (contrast)
Writes length bytes of data from pointer directly to the LCD
segment memory, starting with offset .
Passing a value of 0 – 7 will change the contrast of the LCD
segments, 0 being the minimum, 7 being the maximum.
Relevant Preprocessor:
None
Relevant Interrupts:
#int_lcd
Relevant Inlcude Files:
LCD frame is complete, all pixels displayed
None, all functions built-in to the compiler.
Relevant getenv() Parameter s:
LCD
Returns TRUE if the device has an Internal LCD Driver Module.
Example Program:
// How each segment of the LCD is set (on or off) for the ASCII digits 0 to 9.
byte CONST DIGIT_MAP[10] = {0xFC, 0x60, 0xDA, 0xF2, 0x66, 0xB6, 0xBE, 0xE0, 0xFE,
0xE6};
// Define the segment information for the first digit of the LCD
#define DIGIT1 COM1+20, COM1+18, COM2+18, COM3+20, COM2+28, COM1+28,
COM2+20, COM3+18
// Displays the digits 0 to 9 on the first digit of the LCD.
for(i = 0; i <= 9; i++) {
lcd_symbol( DIGIT_MAP[i], DIGIT1 );
delay_ms( 1000 );
}
Internal Oscillator
Many chips have internal oscillator. There are different ways to configure the internal oscillator.
Some chips have a constant 4 Mhz factory calibrated internal oscillator. The value is stored in
some location (mostly the highest program memory) and the compiler moves it to the osccal
register on startup. The programmers save and restore this value but if this is lost they need to
be programmed before the oscillator is functioning properly. Some chips have factory calibrated
internal oscillator that offers software selectable frequency range(from 31Kz to 8 Mhz) and they
have a default value and can be switched to a higher/lower value in software. They are also
software tunable. Some chips also provide the PLL option for the internal oscillator.
Relevant Functions:
setup_oscillator(mode,
finetune)
Sets the value of the internal oscillator and also tunes it. The
options vary depending on the chip and are listed in the device
header files.
43
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY