虫虫首页|资源下载|资源专辑|精品软件
登录|注册

时钟显示程序

  • VHDL语言编写的时钟显示代码

    VHDL语言编写的时钟显示代码,简短而又易懂,个人觉得很不错

    标签: VHDL 语言 编写 时钟显示

    上传时间: 2013-08-19

    上传用户:bpgfl

  • 基于DM642的OSD显示程序

    基于DM642的OSD显示程序,代码是基于FPGA编写的demo程序,大家可以参考一下

    标签: 642 OSD DM 显示程序

    上传时间: 2013-08-22

    上传用户:qlpqlq

  • 基于proteus的液晶(t6969c)显示程序

    基于proteus的液晶(t6969c)显示程序\r\n

    标签: proteus t6969c 液晶 显示程序

    上传时间: 2013-09-29

    上传用户:han_zh

  • 12864串口显示显示程序

    12864的串口显示程序,.c和.h文件集合

    标签: 12864 串口显示 显示程序

    上传时间: 2013-12-18

    上传用户:xiaodu1124

  • c51 24X8点阵1302时钟c程序

    c51 24X8点阵1302时钟c程序 做过的东西,确保好用

    标签: 24X8 1302 c51 点阵

    上传时间: 2013-10-17

    上传用户:chongchongsunnan

  • C51单片机_定时器可调时钟_程序

    C51单片机_定时器可调时钟_程序

    标签: C51 单片机 定时器 时钟

    上传时间: 2013-11-24

    上传用户:zhuce80001

  • 增强型51单片机STC12C5A60S2的内部AD和PWM波以及时钟输出程序

    增强型51单片机STC12C5A60S2的内部AD和PWM波以及时钟输出程序

    标签: 12C STC A60 60S

    上传时间: 2013-11-06

    上传用户:wch1989

  • 16 16点阵显示汉字原理及显示程序

    16 16点阵显示汉字原理及显示程序 #include "config.h" #define                DOTLED_LINE_PORT        PORTB #define                DOTLED_LINE_DDR                DDRB #define                DOTLED_LINE_PIN                PINB #define                DOTLED_LINE_SCKT        PB1 #define                DOTLED_LINE_SCKH        PB5 #define                DOTLED_LINE_SDA                PB3 #define                DOTLED_ROW_PORT                PORTC #define                DOTLED_ROW_DDR                DDRC #define                DOTLED_ROW_PIN                PINC #define                DOTLED_ROW_A0                PC0 #define                DOTLED_ROW_A1                PC1 #define                DOTLED_ROW_A2                PC2 #define                DOTLED_ROW_A3                PC3 #define                DOTLED_ROW_E                PC4 uint8 font[] = { /*--  调入了一幅图像:这是您新建的图像  --*/ /*--  宽度x高度=16x16  --*/ 0x00,0x00,0x00,0x00,0x08,0x38,0x18,0x44,0x08,0x44,0x08,0x04,0x08,0x08,0x08,0x10, 0x08,0x20,0x08,0x40,0x08,0x40,0x08,0x40,0x3E,0x7C,0x00,0x00,0x00,0x00,0x00,0x00 }; static void TransmitByte(uint8 byte); static void SelectRow(uint8 row); static void FlipLatchLine(void); static void TransmitByte(uint8 byte) {         uint8 i;                  for(i = 0 ; i < 8 ; i ++)         {                 if(byte & (1 << i))                 {                         DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SDA);                 }                 else                 {                         DOTLED_LINE_PORT &= ~_BV(DOTLED_LINE_SDA);                 }                 //__delay_cycles(100);                 DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SCKH);                 //__delay_cycles(100);                 DOTLED_LINE_PORT &= ~_BV(DOTLED_LINE_SCKH);                 //__delay_cycles(100);         } } static void SelectRow(uint8 row) {           //row -= 1;         row |= DOTLED_ROW_PIN & 0xe0;         DOTLED_ROW_PORT = row; } static void FlipLatchLine(void) {         DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SCKT);         DOTLED_LINE_PORT &= ~_BV(DOTLED_LINE_SCKT); } void InitDotLedPort(void) {         DOTLED_LINE_PORT &= ~(_BV(DOTLED_LINE_SCKT) | _BV(DOTLED_LINE_SCKH));         DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SDA);         DOTLED_LINE_DDR |= _BV(DOTLED_LINE_SCKT) | _BV(DOTLED_LINE_SCKH) | _BV(DOTLED_LINE_SDA);                  DOTLED_ROW_PORT |= 0x1f;         DOTLED_ROW_PORT &= 0xf0;         DOTLED_ROW_DDR |= 0x1f; } void EnableRow(boolean IsEnable) {         if(IsEnable)         {                 DOTLED_ROW_PORT &= ~_BV(DOTLED_ROW_E);         }         else         {                 DOTLED_ROW_PORT |= _BV(DOTLED_ROW_E);         } } void PrintDotLed(uint8 * buffer) {         uint8 i , tmp;                  for(i = 0 ; i < 16 ; i ++)         {                 tmp = *buffer ++;                 TransmitByte(~tmp);                 tmp = *buffer ++;                 TransmitByte(~tmp);                 SelectRow(i);                 FlipLatchLine();         } } void main(void) {         InitDotLedPort();                  EnableRow(TRUE);                  while(1)         {                 PrintDotLed(font);                 __delay_cycles(5000);         }          } //---------------------------------------------------- config.h文件 #ifndef        _CONFIG_H #define        _CONFIG_H //#define                GCCAVR #define                CPU_CYCLES        7372800L #ifndef                GCCAVR #define                _BV(bit)        (1 << (bit)) #endif #define                MSB                0x80 #define                LSB                0x01 #define                FALSE                0 #define                TRUE                1 typedef                unsigned char        uint8; typedef                unsigned int        uint16; typedef                unsigned long        uint32; typedef                unsigned char        boolean; #include <ioavr.h> #include <inavr.h> #include "dotled.h" #endif //-----

    标签: 16 点阵显示 汉字 显示程序

    上传时间: 2013-11-17

    上传用户:mnacyf

  • 又一个来电显示程序

    又一个来电显示程序

    标签: 来电显示 程序

    上传时间: 2013-12-25

    上传用户:star_in_rain

  • 汇编的时钟驻留程序

    汇编的时钟驻留程序

    标签: 汇编 时钟 程序

    上传时间: 2014-01-06

    上传用户:qq521