参数资料
型号: C505L
厂商: SIEMENS AG
英文描述: Microcontrollers(8位微控制器)
中文描述: 微控制器(8位微控制器)
文件页数: 17/25页
文件大小: 113K
代理商: C505L
LCD Control
Using the C505L
17 of 25
AP0829 05.99
Appendix
A
Main.c
#include <Reg505L.h>
#include <LCD.h>
#include <stdio.h> // Contains printf
// C505L SRFs
// Configuration of LCD
///////////////////////////////////////////////////////////////
//
Application Example for ApNote 8029 "LCD Control
//
Using the C505L"
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Main Routine
///////////////////////////////////////////////////////////////
void main(void)
{
/////////////// Functions ////////////////
void Init(void);
Init();
EA = 1;
// Initialize LCD, T0, A/D,
// Enable All Interrupts
TR0 = 1;
// Start Timer 0
while (1);
// endless loop
}
///////////////////////////////////////////////////////////////
// Initialization Function
// Initializes LCD controller, Timer 0, and
// A/D Converter
//////////////////////////////////////////////////////////////
void Init(void)
{
//// Initialize the LCD Controller /////////////////////
SYSCON = 0x20;
// ENABLE ACCESS TO LCD/RTC/XRAM
LCON = 0xC1;
// ENABLE ALL LCD OUTPUTS
// ENABLE LCD CONTROLLER
// USE SYSTEM CLOCK FOR LCD TIMER
DAC0 = LCD_Volt;
// SET VALUE OF U3
LCRL = 0x1B;
// SET VALUES FOR fLCD
LCRH = 0xC1;
// START TIMER
//// Initialize Timer 0 //////////////////////////////
TMOD = 0x00;
// Set T0 to mode 0
ET0 = 1;
// Enable T0 overflow interrupt
//// Initialize the A/D Converter //////////////////////
SYSCON |= 0x10;
// ENABLE ACCESS TO A/D P1ANA REG
相关PDF资料
PDF描述
C508 8-Bit CMOS Microcontroller
C508 Previous Vectron Model Numbers
C509-L 8-Bit CMOS Microcontroller
C509-L 8-Bit CMOS Microcontroller
C513A-2RM 8-Bit CMOS Microcontroller
相关代理商/技术参数
参数描述
C505-L 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit Single-Chip Microcontroller
C505L_1 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit CMOS Microcontroller
C505L4EMCCFXQMA1 功能描述:IC MCU 32BIT 80MQFP 制造商:infineon technologies 系列:* 零件状态:最後搶購 标准包装:1
C505L4EMCCFXUMA1 功能描述:IC MCU 32BIT 80MQFP 制造商:infineon technologies 系列:* 零件状态:最後搶購 标准包装:1
C505-LM 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:8-Bit CMOS Microcontroller