C:\Documents and Settings\Administrateur\Mes documents\projets Keil\DisplayTech\main.c

Size: px
Start display at page:

Download "C:\Documents and Settings\Administrateur\Mes documents\projets Keil\DisplayTech\main.c"

Transcription

1 #include "c8051f000.h" #define TH0VAL 0xFB //Valeur du poids fort du Timer 0 #define TL0VAL 0x71 //Valeur du poids faible du Timer 0 #define csetd0 0x01 #define csetd1 0x02 #define csetd2 0x04 #define csetd3 0x08 #define csetd4 0x10 #define csetd5 0x20 #define csetd6 0x40 #define csetd7 0x80 #define cclrd0 0xfe #define cclrd1 0xfd #define cclrd2 0xfb #define cclrd3 0xf7 #define cclrd4 0xef #define cclrd5 0xdf #define cclrd6 0xbf #define cclrd7 0x7f #define dataport0 P0 #define dataport1 P1 sbit CS1=P1^0; sbit RS=P1^1; sbit E_RD=P1^2; sbit RW=P1^3; sbit RES=P1^4; sbit WAIT=P1^6; sbit INTR=P1^5; typedef unsigned char uchar; typedef unsigned int uint; void Init_Device(void); xdata volatile unsigned short ComptItTimer0; uchar code sel_color[]=0xf8,0x00,0x07,0xe0,0x00,0x1f,0xff,0xff,0xde,0xfb,0xbd,0xf7,0x9 c,0xf3,0x7b,0xef, 0x5a,0xeb,0x39,0xe7,0x18,0xe3,0xce,0x59,0xce,0x40,0x06,0x59,0x0 6,0x40,0xc8,0x19, 0xc8,0x00,0x00,0x19,0x06,0x59,0x06,0x40,0xc8,0x19,0xc8,0x00,0x0 0,0x19,0x06,0x59, 0x06,0x40,0xc8,0x19,0xc8,0x00,0x00,0x19; uchar code clear[]=0x00,0x00; uchar code all[]=0xff,0xff; uchar code column[]=0xaa,0xaa; uchar code checker[]=0xaa,0x55; uchar code row[]=0xff,0x00; uchar code icon[]=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0 0,0x00,0x00, 0x07,0xE0,0x7E,0x07,0xE3,0xF8,0x78,0x01,0x83,0xCF,0x3F,0xC7,0xF8,0x1F,0xBC,0xF0, 0x03,0x30,0x18,0x0C,0xE1,0x8C,0x30,0x01,0x81,0x86,0x66,0x63,0x18,0x33,0x98,0x60, 0x03,0x18,0x18,0x18,0x61,0x86,0x30,0x03,0xC0,0xCC,0x66,0x63,0x0C,0x61,0x98,0x60, 0x03,0x18,0x18,0x18,0x01,0x86,0x30,0x03,0xC0,0xCC,0x06,0x03,0x30,0xC0,0x18,0x60, 0x03,0x0C,0x18,0x18,0x01,0x86,0x30,0x03,0xC0,0x78,0x06,0x03,0x30,0xC0,0x18,0x60, 0x03,0x0C,0x18,0x0E,0x01,0x8C,0x30,0x03,0xC0,0x78,0x06,0x03,0xF0,0xC0,0x18,0x60, 0x03,0x0C,0x18,0x03,0x81,0xF8,0x30,0x06,0x60,0x30,0x06,0x03,0x30,0xC0,0x1F,0xE0, 0x03,0x0C,0x18,0x00,0xC1,0x80,0x30,0x06,0x60,0x30,0x06,0x03,0x30,0xC0,0x18,0x60, 0x03,0x0C,0x18,0x00,0x61,0x80,0x30,0x07,0xE0,0x30,0x06,0x03,0x00,0xC0,0x18,0x60, 0x03,0x18,0x18,0x18,0x61,0x80,0x30,0x06,0x60,0x30,0x06,0x03,0x00,0xC1,0x98,0x60, Page: 1

2 0x03,0x18,0x18,0x18,0x61,0x80,0x30,0xCC,0x30,0x30,0x06,0x03,0x0C,0x61,0x98,0x60, 0x03,0x30,0x18,0x1C,0xC1,0x80,0x30,0xCC,0x30,0x30,0x06,0x03,0x18,0x63,0x18,0x60, 0x07,0xE0,0x7E,0x1F,0x83,0xC0,0x7F,0x9E,0x78,0x78,0x0F,0x07,0xF8,0x3E,0x3C,0xF0; uchar code engchar[]=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x7F,0xC0,0x1F,0xF8,0x07,0xE4,0x7F,0xF0,0x7E,0x00,0x03,0x80, 0x7E,0x3E,0x3F,0xFC,0x7F,0xFC,0x03,0xE4,0xFC,0x7E,0x00,0x00,0x7E,0x00,0x3F,0xFC, 0x7F,0xC0,0x18,0x70,0x01,0x80,0x0C,0x1C,0x18,0x18,0x18,0x00,0x03,0x80,0x38,0x08, 0x31,0x84,0x18,0x0C,0x06,0x1C,0x30,0x18,0x00,0x00,0x18,0x00,0x31,0x84,0x18,0x70, 0x18,0x18,0x01,0x80,0x18,0x0C,0x18,0x0C,0x18,0x00,0x03,0x80,0x18,0x08,0x21,0x86, 0x18,0x04,0x08,0x0C,0x30,0x18,0x00,0x00,0x18,0x00,0x21,0x86,0x18,0x18,0x18,0x0C, 0x01,0x80,0x30,0x04,0x18,0x06,0x18,0x00,0x02,0x80,0x18,0x10,0x41,0x82,0x18,0x06, 0x18,0x04,0x30,0x18,0x00,0x00,0x18,0x00,0x41,0x82,0x18,0x0C,0x18,0x0C,0x01,0x80, 0x30,0x04,0x18,0x06,0x18,0x00,0x06,0xC0,0x0C,0x10,0x41,0x82,0x18,0x02,0x30,0x02, 0x30,0x18,0x00,0x00,0x18,0x00,0x41,0x82,0x18,0x0C,0x18,0x0C,0x01,0x80,0x30,0x00, 0x18,0x06,0x18,0x00,0x04,0xC0,0x0C,0x30,0x01,0x80,0x18,0x00,0x30,0x02,0x30,0x18, 0x00,0x00,0x18,0x00,0x01,0x80,0x18,0x0C,0x18,0x06,0x01,0x80,0x30,0x00,0x18,0x06, 0x18,0x00,0x04,0xC0,0x0E,0x20,0x01,0x80,0x18,0x10,0x20,0x00,0x30,0x18,0x00,0x00, 0x18,0x00,0x01,0x80,0x18,0x06,0x18,0x06,0x01,0x80,0x18,0x00,0x18,0x06,0x18,0x00, 0x04,0xC0,0x06,0x20,0x01,0x80,0x18,0x10,0x60,0x00,0x30,0x18,0x00,0x00,0x18,0x00, 0x01,0x80,0x18,0x06,0x18,0x06,0x01,0x80,0x1E,0x00,0x18,0x0C,0x18,0x00,0x0C,0x60, 0x06,0x40,0x01,0x80,0x18,0x30,0x60,0x00,0x30,0x18,0x00,0x00,0x18,0x00,0x01,0x80, 0x18,0x06,0x18,0x06,0x01,0x80,0x07,0xC0,0x18,0x18,0x18,0x00,0x08,0x60,0x03,0x40, 0x01,0x80,0x1F,0xF0,0x60,0x00,0x30,0x18,0x00,0x00,0x18,0x00,0x01,0x80,0x18,0x06, 0x18,0x06,0x01,0x80,0x01,0xF0,0x1F,0xF0,0x18,0x00,0x08,0x60,0x03,0x40,0x01,0x80, 0x18,0x30,0x60,0x00,0x3F,0xF8,0x00,0x00,0x18,0x00,0x01,0x80,0x18,0x06,0x18,0x06, 0x01,0x80,0x00,0x78,0x18,0x00,0x18,0x00,0x08,0x60,0x03,0x80,0x01,0x80,0x18,0x10, 0x60,0x00,0x30,0x18,0x00,0x00,0x18,0x00,0x01,0x80,0x18,0x06,0x18,0x06,0x01,0x80, 0x00,0x1C,0x18,0x00,0x18,0x00,0x1F,0xF0,0x01,0x80,0x01,0x80,0x18,0x10,0x60,0x00, 0x30,0x18,0x00,0x00,0x18,0x00,0x01,0x80,0x18,0x06,0x18,0x06,0x01,0x80,0x00,0x0E, 0x18,0x00,0x18,0x00,0x10,0x30,0x01,0x80,0x01,0x80,0x18,0x00,0x60,0x00,0x30,0x18, 0x00,0x00,0x18,0x00,0x01,0x80,0x18,0x06,0x18,0x06,0x01,0x80,0x00,0x06,0x18,0x00, 0x18,0x00,0x10,0x30,0x01,0x80,0x01,0x80,0x18,0x00,0x60,0x00,0x30,0x18,0x00,0x00, 0x18,0x00,0x01,0x80,0x18,0x06,0x18,0x0C,0x01,0x80,0x20,0x06,0x18,0x00,0x18,0x00, 0x10,0x30,0x01,0x80,0x01,0x80,0x18,0x00,0x30,0x02,0x30,0x18,0x00,0x00,0x18,0x00, 0x01,0x80,0x18,0x0C,0x18,0x0C,0x01,0x80,0x20,0x06,0x18,0x00,0x18,0x02,0x30,0x30, 0x01,0x80,0x01,0x80,0x18,0x02,0x30,0x02,0x30,0x18,0x00,0x00,0x18,0x02,0x01,0x80, 0x18,0x0C,0x18,0x08,0x01,0x80,0x10,0x06,0x18,0x00,0x18,0x02,0x20,0x18,0x01,0x80, 0x01,0x80,0x18,0x02,0x30,0x04,0x30,0x18,0x00,0x00,0x18,0x02,0x01,0x80,0x18,0x08, 0x18,0x18,0x01,0x80,0x18,0x0C,0x18,0x00,0x18,0x04,0x20,0x18,0x01,0x80,0x01,0x80, 0x18,0x04,0x18,0x0C,0x30,0x18,0x00,0x00,0x18,0x04,0x01,0x80,0x18,0x18,0x18,0x70, 0x01,0x80,0x1C,0x18,0x18,0x00,0x18,0x0C,0x60,0x18,0x01,0x80,0x01,0x80,0x18,0x0C, 0x0C,0x18,0x30,0x18,0x00,0x00,0x18,0x0C,0x01,0x80,0x18,0x70,0x7F,0xC0,0x1F,0xF8, 0x13,0xF0,0x7E,0x00,0x7F,0xFC,0xF8,0x3E,0x07,0xE0,0x07,0xE0,0x7F,0xFC,0x03,0xE0, 0xFC,0x7E,0x00,0x00,0x7F,0xFC,0x07,0xE0,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00; // Page: 2

3 // Interrupt Service Routines // // // Timer 0 Interrupt Service Routine : every 1 ms // void timer0_isr (void) interrupt 1 TH0 = TH0VAL; TL0 = TL0VAL; if (ComptItTimer0!= 0) ComptItTimer0--; void Delay_ms(unsigned short wait_delay) ComptItTimer0 = wait_delay; while (ComptItTimer0!= 0) WDTCN = 0xA5; /*========== MCU Cycle ===========*/ void LCD_CmdWrite(unsigned char cmd) // Command Write dataport0=cmd; WDTCN = 0xA5; void LCD_DataWrite(unsigned char datatowrite) // Data Write dataport0=datatowrite; WDTCN = 0xA5; unsigned char LCD_DataRead(void) // Data Read unsigned char Data; PRT0CF = 0; //Data port is opened drain E_RD=0; Data = P0; PRT0CF = 0xFF; WDTCN = 0xA5; //Data port is push-pull Page: 3

4 return Data; unsigned char LCD_StatusRead(void) // Read Status Register unsigned char Data; PRT0CF = 0; //Data port is opened drain E_RD=0; Data = P0; PRT0CF = 0xFF; WDTCN = 0xA5; //Data port is push-pull return Data; void LCD_CmdDataWrite(uchar index,uchar data1) dataport0=index; dataport0=data1; WDTCN = 0xA5; void wdata0(uchar data1,uint color) uchar a; uint i,k; for(k=0;k<8;k++) a=data1&0x80; if(a==0x80) i=(color-1)*2; dataport0=sel_color[i]; Page: 4

5 dataport0=sel_color[i+1]; else data1=data1<<1; WDTCN = 0xA5; void wdata1(uint color) uint i; i=(color-1)*2; dataport0=sel_color[i]; dataport0=sel_color[i+1]; WDTCN = 0xA5; void Init_SINT028ATFT(void) /* Delay_ms(2000); RES=0; Delay_ms(2000); RES=1; Delay_ms(2000); */ LCD_CmdDataWrite(0x04,0x00);//PDAT IS LETCH IN RISING EDGE Page: 5

6 LCD_CmdDataWrite(0x10,0x08); //system configuration register,select paralle ouput m ode and 65k color mode LCD_CmdDataWrite(0x11,0x00); //panel data type register,select rgb mode LCD_CmdDataWrite(0x12,0x00); //gpio configure register,set gpio output LCD_CmdDataWrite(0x14,0x27); //lcd horizontal display width=39 LCD_CmdDataWrite(0x15,0x02); //horizontal non_display register set DE low enable LCD_CmdDataWrite(0x16,0x03); //lcd horizontal non-display period register set=06 LCD_CmdDataWrite(0x17,0x01); //hsync stat position set LCD_CmdDataWrite(0x18,0x03); //hsync pwmregister LCD_CmdDataWrite(0x19,0xef); //lcd vertical display height=239 LCD_CmdDataWrite(0x1a,0x00); //lcd vertical display height regesiter0 LCD_CmdDataWrite(0x1b,0x0f); //lcd vertical non-display period regeister0 LCD_CmdDataWrite(0x1c,0x00); //lcd vertical non-display period regeister1 LCD_CmdDataWrite(0x1d,0x0e); //vsync start position register0 LCD_CmdDataWrite(0x1e,0x06); //vsync start position register1 LCD_CmdDataWrite(0x1f,0x01); //vsync pwm register,vsync low active LCD_CmdDataWrite(0x28,0x02); //???? LCD_CmdDataWrite(0x30,0x00); //horizontal start point0(hsaw0) LCD_CmdDataWrite(0x31,0x00); //horizontal start point1(hsaw1) LCD_CmdDataWrite(0x34,0x1f); //horizontal end point0(heaw0) LCD_CmdDataWrite(0x35,0x03); //horizontal end point1(heaw1) LCD_CmdDataWrite(0x32,0x00); //vertical start point0(vsaw0) LCD_CmdDataWrite(0x33,0x00); //vertical start point1(vsaw1) LCD_CmdDataWrite(0x36,0xef); //vertical end point0(veaw0) LCD_CmdDataWrite(0x37,0x00); //vertical end point1(veaw1) LCD_CmdDataWrite(0x20,0x05); //display configuration register,one lawer,seg0~seg(n- 1),com(n-1)~com0 r //LCD_CmdDataWrite(0x21,0x10); //font control register0,select cgrom,iso //LCD_CmdDataWrite(0x22,0x00); //full alignment is disable,font with backgroud colo //LCD_CmdDataWrite(0x29,0x02); //font line distance=2 LCD_CmdDataWrite(0x40,0x09); //select graphic mode,text cursor(disable,normal displ ay),cursor auto-increases L->R,U->D LCD_CmdDataWrite(0x41,0x00); //graphic cursor enable,cursor 1,lawer 1 //LCD_CmdDataWrite(0x42,0x90); //text foregroud color //LCD_CmdDataWrite(0x43,0xff); //text background color //LCD_CmdDataWrite(0x44,0x00); //blink time control register //LCD_CmdDataWrite(0x45,0x70); //text cursor size Page: 6

7 LCD_CmdDataWrite(0x84,0x00); //set graphic cursor color0=0 LCD_CmdDataWrite(0x85,0x00); //set graphic cursor color1=0 LCD_CmdDataWrite(0x88,0x12); //PLL control register0 LCD_CmdDataWrite(0x89,0x03); //PLL control register1 LCD_CmdDataWrite(0x8a,0x8a); //PWM1 control register LCD_CmdDataWrite(0x8b,0x80); //PWM1 duty cycle register LCD_CmdDataWrite(0x01,0x80); //display on,normal display void LCD_DispLine(uchar *array,uint colornum) uint i,j; LCD_CmdDataWrite(0x46,0x00); //set graphic horizontal low address LCD_CmdDataWrite(0x47,0x00); //set graphic horizontal high address LCD_CmdDataWrite(0x48,0x00); //set graphic vertical low address LCD_CmdDataWrite(0x49,0x00); //set graphic vertical high address //enter write mode for (i=0;i<320;i++) for(j=0;j<30;j++) wdata0(*array,colornum); void LCD_DispLine2(void) uint i,j,k,m; LCD_CmdDataWrite(0x46,0x00); //set graphic horizontal low address LCD_CmdDataWrite(0x47,0x00); //set graphic horizontal high address LCD_CmdDataWrite(0x48,0x00); //set graphic vertical low address LCD_CmdDataWrite(0x49,0x00); //set graphic vertical high address //enter write mode for(i=0;i<320;i++) m=12; for(j=0;j<7;j++) for(k=0;k<34;k++) wdata1(m); m++; m--; wdata1(m); wdata1(m); void LCD_DispLine3(void) uint i,j,k,m; LCD_CmdDataWrite(0x46,0x00); //set graphic horizontal low address LCD_CmdDataWrite(0x47,0x00); //set graphic horizontal high address LCD_CmdDataWrite(0x48,0x00); //set graphic vertical low address LCD_CmdDataWrite(0x49,0x00); //set graphic vertical high address Page: 7

8 //enter write mode for(i=0;i<320;i++) m=4; for(j=0;j<8;j++) for(k=0;k<30;k++) wdata1(m); m++; void dispengchar(uchar array[],uint colornum) uint i,j,k,m; LCD_CmdDataWrite(0x46,0x00); //set graphic horizontal low address LCD_CmdDataWrite(0x47,0x00); //set graphic horizontal high address LCD_CmdDataWrite(0x48,0x00); //set graphic vertical low address LCD_CmdDataWrite(0x49,0x00); //set graphic vertical high address //enter write mode for (i=0;i<10;i++) m = 0; for(j=0;j<32;j++) for(k=0;k<30;k++) wdata0(array[m],colornum); m++; colornum++; /* void dispphoto(uchar *array) uint i,j; LCD_CmdDataWrite(0x46,0x00); //set graphic horizontal low address LCD_CmdDataWrite(0x47,0x00); //set graphic horizontal high address LCD_CmdDataWrite(0x48,0x00); //set graphic vertical low address LCD_CmdDataWrite(0x49,0x00); //set graphic vertical high address //enter write mode for (i=0;i<80;i++) for(j=0;j<600;j++) wdata1(*array); array++; */ //========== Subroutine for Busy flag checking =========== void Chk_Busy(void) do while(lcd_statusread()&0x80); // ========== Subroutine for foreground color setting =========== void Text_Foreground_Color(unsigned int color) unsigned char temp; Page: 8

9 temp=color; LCD_CmdDataWrite(0x42, temp); //TFCR // ========== Subroutine for cursor coordinates =========== void XY_Coordinate(unsigned int X,unsigned int Y) unsigned char temp; temp=x; LCD_CmdDataWrite(0x46, temp); temp=x>>8; LCD_CmdDataWrite(0x47, temp); temp=y; LCD_CmdDataWrite(0x48, temp); temp=y>>8; LCD_CmdDataWrite(0x49, temp); // ========== subroutine for text mode setting =========== void Text_Mode(void) unsigned char temp; LCD_CmdWrite(0x40); //MWCR0 temp = LCD_DataRead(); temp = csetd7 ; LCD_CmdWrite(0x40); //MWCR0 LCD_DataWrite(temp); void Graphic_Mode(void) unsigned char temp; LCD_CmdWrite(0x40); //MWCR0 temp = LCD_DataRead(); temp &= cclrd7; LCD_CmdWrite(0x40); //MWCR0 LCD_DataWrite(temp); // ========== Subroutine for showing text =========== void Show_String(unsigned char *str) while(*str!= '\0') LCD_DataWrite(*str); ++str; Chk_Busy(); void main (void) xdata unsigned char ResetSourceRegister; //On lit le registre de la source du reset ResetSourceRegister = RSTSRC; Init_Device(); ComptItTimer0 = 0; Page: 9

10 WDTCN = 0x07; WDTCN = 0xA5; // Watchdog Timer Control Register Delay_ms(2000); Init_SINT028ATFT(); while(1) WDTCN = 0xA5; Graphic_Mode(); dispengchar(engchar,18); Delay_ms(1000); LCD_DispLine3(); Delay_ms(1000); LCD_DispLine(all,11); Delay_ms(1000); LCD_DispLine(all,4); Delay_ms(1000); LCD_DispLine2(); Delay_ms(1000); //display DISPLAYTECH LTD //display 8level gray scale //all black //all white //display R,G,B Text_Foreground_Color(0x02); // setup text foreground color ( Blue ) Text_Mode(); XY_Coordinate(140,110); // setup cursor coordinates Show_String("DisplayTech"); // display Text Delay_ms(2000); Page: 10

SC1602LC 16x2 Large Characters RS232 LCD Module. User s Manual. Large Viewing Area 99mm x 24mm. Large Character Size. 4.84mm x 9.66mm.

SC1602LC 16x2 Large Characters RS232 LCD Module. User s Manual. Large Viewing Area 99mm x 24mm. Large Character Size. 4.84mm x 9.66mm. Large Viewing Area 99mm x 24mm Large Character Size 4.84mm x 9.66mm Features 16x2 Large Characters LCD RS232 Interface Simple Serial Command Wide Range Voltage Operation ( 9-15V ) 8 User s Defined Characters

More information

{ int i,j; for(i=0;i<count;i++) for(j=0;j<1275;j++); }

{ int i,j; for(i=0;i<count;i++) for(j=0;j<1275;j++); } RFID based Secured access system using 8051 microcontroller (AT89C51) //Program for RFID based Secured access system using 8051 microcontroller //(AT89C51) #include sfr lcd_data_pin=0xa0; //P2

More information

80C51 Block Diagram. CSE Overview 1

80C51 Block Diagram. CSE Overview 1 80C51 Block Diagram CSE 477 8051 Overview 1 80C51 Memory CSE 477 8051 Overview 3 8051 Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits i.e. addresses for only 256 bytes! PC is

More information

// and verify that there is a sine wave with frequency <FREQUENCY> and

// and verify that there is a sine wave with frequency <FREQUENCY> and F330DC_IDA0_SineWave.c Copyright 2006 Silicon Laboratories, Inc. http:www.silabs.com Program Description: This program outputs a sine wave using IDA0. IDA0's output is scheduled to update at a rate determined

More information

#include <stdio.h> // // Global CONSTANTS

#include <stdio.h> // // Global CONSTANTS Distance.c Author: Baylor Electromechanical Systems Operates on an external 18.432 MHz oscillator. Target: Cygnal Educational Development Board / C8051F020 Tool chain: KEIL C51 6.03 / KEIL EVAL C51 Utilizes

More information

C Language Programming

C Language Programming C Language Programming for the 8051 Overview C for microcontrollers Review of C basics Compilation flow for SiLabs IDE C extensions In-line assembly Interfacing with C Examples Arrays and Pointers I/O

More information

RA8871M_Lite User Guide

RA8871M_Lite User Guide RAiO RA8871M_Lite User Guide Sep. 15, 2017 RAiO TECHNOLOGY INC. 1/102 www.raio.com.tw Revise History Version Date 1.0 2017.09.15 Initial Release RAiO TECHNOLOGY INC. 2/102 www.raio.com.tw Chapter 1 RA8871M_Lite

More information

Tel: Fax:

Tel: Fax: /****************************************************************************** Title: RFM22 transmitter demo program Current version: V1.2 Function: Package send Demo Processor PIC16F690 DIP-20 Clock:

More information

C:\CYGNAL\Examples\C8051F02x\C\Edu_Board_Source_Code\Magcard.c

C:\CYGNAL\Examples\C8051F02x\C\Edu_Board_Source_Code\Magcard.c Magcard.c Author: Baylor Electromechanical Systems Operates on an external 18.432 MHz oscillator. Target: Cygnal Educational Development Board / C8051F020 Tool chain: KEIL C51 6.03 / KEIL EVAL C51 This

More information

Speed Control of a DC Motor using Digital Control

Speed Control of a DC Motor using Digital Control Speed Control of a DC Motor using Digital Control The scope of this project is threefold. The first part of the project is to control an LCD display and use it as part of a digital tachometer. Secondly,

More information

AN127 FLASH PROGRAMMING VIA THE C2 INTERFACE. Relevant Devices. Introduction. C2 Interface

AN127 FLASH PROGRAMMING VIA THE C2 INTERFACE. Relevant Devices. Introduction. C2 Interface FLASH PROGRAMMING VIA THE C2 INTERFACE Relevant Devices This application note applies to the following devices: C8051F300, C8051F301, C8051F302, and C8051F303. Introduction This application note describes

More information

Thomas Liu (Business Manager) //****************************************************************//

Thomas Liu (Business Manager)   //****************************************************************// //****************************************************************// // Program for AM230x series //MCU: AT89S52, Frequency of crystal oscillator: 11.0592MHz //Function: Transmit RH & Temp. Data via PC

More information

Hitachi Europe Ltd. ISSUE : app026/1.0 APPLICATION NOTE DATE : 20/9/94

Hitachi Europe Ltd. ISSUE : app026/1.0 APPLICATION NOTE DATE : 20/9/94 APPLICATION NOTE DATE : 20/9/94 Configuring the HD44780 LCD controller / driver which is built onto the range of Hitachi Character Liquid Crystal Display Modules. The HD44780 gives the user the ability

More information

Chapter 6 Serial EEPROM by John Leung

Chapter 6 Serial EEPROM by John Leung Chapter 6 Serial EEPROM 6.1 ATMEL I 2 C Serial EEPROM The AT24C256 (U6) is useful for our application in storing critical data like temperature and humidity data, its time stamp, graphics, icons, or even

More information

Embedded Controller Programming II. I/O Device Programming in C Part 1: Input and Interrupts

Embedded Controller Programming II. I/O Device Programming in C Part 1: Input and Interrupts Discovery.com Embedded Controller Programming II I/O Device Programming in C Part 1: Input and Interrupts Ken Arnold Copyright (c)2006 Ken Arnold 051221 1 Overview Basic Input Devices Switch Input Matrix

More information

ECE 4510/5530 Microcontroller Applications Week 9

ECE 4510/5530 Microcontroller Applications Week 9 ECE 45/553 Microcontroller Applications Week 9 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences Lab 7 & 8 Elements

More information

MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL

MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI Vision Mission Envisioning a world Lead by our Engineers, holding a Beacon of Hope and Confidence for Generations to come. To Produce Competent, Disciplined

More information

AN10184 Connecting a keyboard to the Philips LPC9xx microcontroller

AN10184 Connecting a keyboard to the Philips LPC9xx microcontroller CIRCUITS ITEGRATED CIRCUITS ABSTRACT This application note demonstrates how to connect a keypad matrix to the LPC9xx microcontroller family from Philips Semiconductors. It explains a software example which

More information

LC-E201A. Application note. 1. Mechanical Specification: LC-E021A-application note page 1 of 16 Revision:

LC-E201A. Application note. 1. Mechanical Specification: LC-E021A-application note page 1 of 16 Revision: LC-E201A Application note 1. Mechanical Specification: LC-E021A-application note page 1 of 16 Revision: 2. Input/ Output Pin Assignment Pin No. Symbol I/O Description Remark 1 NC Do not connect 2 GDR O

More information

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Contents at a Glance PS PRIMER MSP430 kit... 3 Keypad... 4 Interfacing keypad... 4 Interfacing keypad with MSP430F5529...

More information

深圳市晶惠迪电子有限公司 JHD12864-G66BSW(G/B/Y) SPECIFICATION DOC.REVISION A01. PREPARED BY 30 th Mar 2010

深圳市晶惠迪电子有限公司 JHD12864-G66BSW(G/B/Y) SPECIFICATION DOC.REVISION A01. PREPARED BY 30 th Mar 2010 JHD12864-G66BSW(G/B/Y) SPECIFICATION DOC.REVISION A01 Customer Approval: NAME SIGNATURE DATE PREPARED BY 30 th Mar 2010 APPROVED BY Address: Bao'an District of Shenzhen City West township Hok Chau Hang

More information

RA8875 Custom Font By: Jason Lopez aka AtomSoft Web:

RA8875 Custom Font By: Jason Lopez aka AtomSoft Web: RA8875 Custom Font By: Jason Lopez aka AtomSoft Web: http://atomsoft.wordpress.com I assume you have a working LCD with a RA8875 controller. I also assume that you have the basic code working which includes

More information

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7

More information

LCDs. Embedded Systems Interfacing. 20 September 2011

LCDs. Embedded Systems Interfacing. 20 September 2011 20 September 2011 How Polarizers Work How work How Color Work Other Technologies Reflective Nematic (no back light) Cholesteric Liquid Crystal Organic LED/Polymer LED Vacuum Florescent Display Display

More information

Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide. Dragon12 LCD Display

Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide. Dragon12 LCD Display Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character

More information

DB0-DB16 to pin D0-D13, pin A0-A1 of Arduino RESET to A2

DB0-DB16 to pin D0-D13, pin A0-A1 of Arduino RESET to A2 Test CODE Example 1 Display with Arduino: Now we will show how to use the Arduino (ATMega 168) to control the TFT LCD module. To have a quicker refresh rate, we use the 16bit mode for LCD, it s two times

More information

SPECIFICATION FOR M3 TFT MODULE NO: AFA320240B-3.5-A-TP REVISION NO: 02

SPECIFICATION FOR M3 TFT MODULE NO: AFA320240B-3.5-A-TP REVISION NO: 02 SPECIFICATION FOR M3 TFT MODULE NO: AFA320240B-3.5-A-TP REVISION NO: 02 Customer s Approval: PREPARED BY (RD ENGINEER) CHECKED BY APPROVED BY SIGNATURE WP DATE 2010-9-25 Orient Display (N.A.) Ltd. 145

More information

User-defined Download Application Note

User-defined Download Application Note User-defined Download 1. Applied Products: SM59XX Series, SM59DXX Series, SM59RXX Series. 2. Object: User can define command as entry ISP password through ISAP software to run programming. 3. Operation

More information

App Note Application Note: State-Driven Control of a dpasp using a Microchip PIC.

App Note Application Note: State-Driven Control of a dpasp using a Microchip PIC. Rev: 1.0.1 Date: 8 th July 2009 App Note - 207 Application Note: State-Driven Control of a dpasp using a Microchip PIC. This application note contains a total 3 files, if you have only this pdf text document,

More information

Write LED display data, in accordance with the address from the display from low to high, from low to high data byte operation.

Write LED display data, in accordance with the address from the display from low to high, from low to high data byte operation. The register stores transferred from an external device via the serial interface to the TM1637 data address 00H-05H bytes of six units, respectively, and SGE and GRID pin chip LED lights are connected

More information

/*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */

/*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */ /*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */ /*the speed the cell which are less dense can float and the cell that are denser can sink*/ /*the user has five

More information

EE 354 September 16, 2016 C Sample Programs

EE 354 September 16, 2016 C Sample Programs EE 354 September 16, 2016 C Sample Programs //DataArray /* This program creates an array of data in code memory * that is 32 bytes long. Fill this array with the ascii codes for * the capital letters plus

More information

LABORATORY MANUAL EMBEDDED C LABORATORY. M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.

LABORATORY MANUAL EMBEDDED C LABORATORY. M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. LABORATORY MANUAL EMBEDDED C LABORATORY M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE Laknepally, Narsampet, Warangal 1 M.TECH. (EMBEDDED

More information

Bare Metal Application Design, Interrupts & Timers

Bare Metal Application Design, Interrupts & Timers Topics 1) How does hardware notify software of an event? Bare Metal Application Design, Interrupts & Timers 2) What architectural design is used for bare metal? 3) How can we get accurate timing? 4) How

More information

Keywords: CRC, CRC-7, cyclic redundancy check, industrial output, PLC, programmable logic controller, C code, CRC generation, microprocessor, switch

Keywords: CRC, CRC-7, cyclic redundancy check, industrial output, PLC, programmable logic controller, C code, CRC generation, microprocessor, switch Keywords: CRC, CRC-7, cyclic redundancy check, industrial output, PLC, programmable logic controller, C code, CRC generation, microprocessor, switch APPLICATION NOTE 6002 CRC PROGRAMMING FOR THE MAX14900E

More information

The modules in this lab room are 4 line by 16 character display modules. The data sheet/users manual for the module is posted on My.Seneca.

The modules in this lab room are 4 line by 16 character display modules. The data sheet/users manual for the module is posted on My.Seneca. LCD Modules A common output display device used with low cost embedded systems is a character LCD display. The displays are available as complete modules with a standard microprocessor parallel interface.

More information

OLED DISPLAY MODULE. Application Notes. DD-12833YW-1A with EVK board PRODUCT NUMBER

OLED DISPLAY MODULE. Application Notes. DD-12833YW-1A with EVK board PRODUCT NUMBER OLED DISPLAY MODULE Application Notes PRODUCT NUMBER DD-12833YW-1A with EVK board TABLE OF CONTENTS 1 EVK SCHEMATIC... 4 2 SYMBOL DEFINITION... 5 3 TIMING CHARACTERISTICS... 6 3.1 MODE (I²C INTERFACE)...

More information

More Fun with Timer Interrupts

More Fun with Timer Interrupts More Fun with Timer Interrupts Chords Objective: Play a musical chord each time you press a button: Button RC0 RC1 RC2 Timer Timer0 Timer1 Timer3 RB0 A3 C4 E4 RB1 B3 D4 F4 RB2 C4 E4 G4 Calculations: Assume

More information

Additional Timer Functionalities. Capture, Compare, PWM

Additional Timer Functionalities. Capture, Compare, PWM Additional Timer Functionalities Capture, Compare and PWM ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it

More information

Venstar Thermostat Adapter

Venstar Thermostat Adapter Developer Venstar Thermostat Adapter v001 Developer Venstar Thermostat Adapter Version 001 May 23, 2013 Revision History Rev Date Comments 001 05/23/13 Initial Release Page 1 of 13 Table of Contents 1

More information

SPECIFICATION FOR M3 TFT MODULE NO: AFA640480B-5.0-A-TP REVISION NO: 00

SPECIFICATION FOR M3 TFT MODULE NO: AFA640480B-5.0-A-TP REVISION NO: 00 SPECIFICATION FOR M3 TFT MODULE NO: AFA640480B5.0ATP REVISION NO: 00 Customer s Approval: PREPARED BY (RD ENGINEER) CHECKED BY APPROVED BY SIGNATURE DATE Orient Display (N.A.) Ltd. 145 Royal Crest Court

More information

SC1602LCPro-YG ( Yellow Green Backlight ) SC1602LCPro-B ( Blue Backlight ) Large Character Size ( 4.88x9.66 mm )

SC1602LCPro-YG ( Yellow Green Backlight ) SC1602LCPro-B ( Blue Backlight ) Large Character Size ( 4.88x9.66 mm ) SC1602LCPro-YG ( Yellow Green Backlight ) SC1602LCPro-B ( Blue Backlight ) Large Character Size ( 4.88x9.66 mm ) Features 16 x 2 Large Characters RS485 Serial Interface Programmable Device Address Programmable

More information

AN-8205 AMC Library Hall Interface Summary AMC Introduction

AN-8205 AMC Library Hall Interface Summary AMC Introduction www.fairchildsemi.com AMC Library Hall Interface Summary The FCM8531 is an application-specific parallel-core processor for motor control that consists of an Advanced Motor Controller (AMC) processor and

More information

P89V51RD2 Development Board May 2010

P89V51RD2 Development Board May 2010 P89V51RD2 Development Board May 2010 NEX Robotics Pvt. Ltd. 1 P89V51RD2 Development Board Introduction: P89V51RD2 Development Board P89V51RD2 Development Board is a low cost development board which have

More information

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7

More information

Embedded Development Board Product Datasheet EMB028TFTDEV

Embedded Development Board Product Datasheet EMB028TFTDEV Displaytech Website: www.displaytech-us.com Embedded Development Board Product Datasheet EMB028TFTDEV 2.8 TFT Development Board for Microchip Development Tools Document ID Revision Date Released Status

More information

Programming Guide I2C Bus

Programming Guide I2C Bus Programming Guide I2C Bus S-Series, T-Series models cdg, 2016. 6. T: +082-32-719-8055 E-mail: cdg@eltsensor.co.kr www.eltsensor.co.kr Contents 1. Applied Models 2. Compare of each model 3. I2C Frame Sequence

More information

// Karl's MS G4 Transmitter Code // Nordic packet: NO_FFTS, FFT_SIZE, 32 Floating Pt. Magnitude Sums

// Karl's MS G4 Transmitter Code // Nordic packet: NO_FFTS, FFT_SIZE, 32 Floating Pt. Magnitude Sums // Karl's MS G4 Transmitter Code // Nordic packet: NO_FFTS, FFT_SIZE, 32 Floating Pt. Magnitude Sums #include "DSP28x_Project.h" #include "Nordic_TX.h" #include #include #define FFT_SIZE

More information

ECE251: Intro to Microprocessors Name: Solutions Mid Term Exam October 4, 2018

ECE251: Intro to Microprocessors Name: Solutions Mid Term Exam October 4, 2018 ECE251: Intro to Microprocessors Name: Solutions Mid Term Exam October 4, 2018 (PRINT) Instructions: No calculators, books, or cell phones; do not communicate with any other student. One side of a single

More information

μc/gui SSL TM Font Converter User s Manual V3.16

μc/gui SSL TM Font Converter User s Manual V3.16 μc/gui SSL TM Secure Embedded Sockets Graphical LayerUser Interface Font Converter User s Manual V3.16 Micriμm 1290 Weston Road, Suite 306 Weston, FL 33326 USA www.micrium.com Designations used by companies

More information

How to Develop Firmware for a Direct Drive TFT-LCD Design with RX62N By: Daniel Azimov, Software Specialist, System Design Center, Future Electronics A Direct Drive TFT-LCD design can drive high quality

More information

MM Update for A3222Q56

MM Update for A3222Q56 MM Update for A3222Q56 New Features: SPI-A3222 Interface; I2C to SHA256 Special Channel; I2C Data Interface; Support Firmware Reload Protocol; DNA Read Interface; 1. alink 1.1 FSM IDLE FIFO Chip_num WORK

More information

PRELIMINARY DESCRIPTION. (*)Coil (Hex) 0x00A1 0x00A2 0x00A3

PRELIMINARY DESCRIPTION. (*)Coil (Hex) 0x00A1 0x00A2 0x00A3 DigitalinputtoEthernet Phone: +1 561 779 5660 email:datexel@datexel.com www.datexel.com User Guide MODBUS TCP/IP protocol Firmware Version : 8200 PRELIMINARY DESCRIPTION Modbus TCP/IP server 16 Digital

More information

1 SETTING UP GENERAL FUNCTION TYPE PROTOCOL MESSAGES COMMAND RETURN CODES... 6 TRANSACTION EXAMPLES...

1 SETTING UP GENERAL FUNCTION TYPE PROTOCOL MESSAGES COMMAND RETURN CODES... 6 TRANSACTION EXAMPLES... 1 SETTING UP... 3 1.1 RS232 CONTROL CABLES...3 1.2 RS232 SETTINGS...3 2 GENERAL... 4 3 FUNCTION TYPE... 4 4 PROTOCOL MESSAGES... 4 4.1 MESSAGE FORMATS...4 4.1.1 Message Head...4 4.1.2 Message Body...5

More information

// fontdata6x8.h //WARNING: This Font is usable only with MikroE GLCD Lib. // X-GLCD Lib does not handle this font.

// fontdata6x8.h //WARNING: This Font is usable only with MikroE GLCD Lib. // X-GLCD Lib does not handle this font. Text Displayed on GLCD with an ATtiny 26 This is a program I have compiled using mikroc to display text on an old Electronic Gold Mine GLCD 79294 SDI. These display s have been sold out but I had a number

More information

PRODUCT RELIABILITY HOST COMMUNICATIONS PACKET STRUCTURE SPECIFICATION. % of Initial Brightness (New Module) NOTE. <type><data_length><data><crc> type

PRODUCT RELIABILITY HOST COMMUNICATIONS PACKET STRUCTURE SPECIFICATION. % of Initial Brightness (New Module) NOTE. <type><data_length><data><crc> type Hardware v1.0 / Firmware s1.3 / Data Sheet v1.0 PRODUCT RELIABILITY ITEM SPECIFICATION Note: We recommend that the backlight of white LED backlit modules be dimmed or turned off during periods of inactivity

More information

MIDI.C December 8, 2002 Page 1

MIDI.C December 8, 2002 Page 1 MIDI.C December 8, 2002 Page 1 /* Midi.c These are the functions that provide the interface to the midi port */ #include #include #include "smb.h" #include "midi.h" #pragma interrupt_handler

More information

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader Rev. 03 13 September 2006 Application note Document information Info Keywords Abstract Content ARM ISP, bootloader Entering ISP mode is normally done by sampling a pin during reset. This application note

More information

LCD. Configuration and Programming

LCD. Configuration and Programming LCD Configuration and Programming Interfacing and Programming with Input/Output Device: LCD LCD (liquid crystal display) is specifically manufactured to be used with microcontrollers, which means that

More information

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4 RP-VL-UTIL-V1 Developer s Guide [ Contents ] 1. Introduction... 1 2. Building Environment... 1 3. Operating Environment... 1 4. Function Explanation... 2 4.1. Common API for Transmitting and Receiving...

More information

Designing Your Own Soft Modules

Designing Your Own Soft Modules 4 Objectives Learn how to create circuit schematics with OrCAD Learn how to export a circuit from OrCAD as an EDIF netlist. Learn how to import an EDIF netlist into the FastChip library as a new soft module.

More information

The MCU s Pulse. Internal clock or oscillator to synchronize operation. One clock cycle = 1 TOSC = 1/fOSC. t TOSC

The MCU s Pulse. Internal clock or oscillator to synchronize operation. One clock cycle = 1 TOSC = 1/fOSC. t TOSC The MCU s Pulse Internal clock or oscillator to synchronize operation V 0 t TOSC One clock cycle = 1 TOSC = 1/fOSC Clock Cycle The minimum time to perform any operation is one instruction cycle TCY 1 TCY

More information

SmartLCD. Programmer s Guide and Application Notes

SmartLCD. Programmer s Guide and Application Notes SmartLCD Programmer s Guide and Application Notes October 14, 1999 SmartLCD Programmer s Guide And Application Notes The following documentation is supporting material for the SmartLCD sample programs.

More information

variable 1. Start of Packet - is used to provide synchronization when parsing packets. Always 0xFC

variable 1. Start of Packet - is used to provide synchronization when parsing packets. Always 0xFC DreamScreen V2 WiFi UDP Protocol The DreamScreen-WiFi platform uses UDP unicasting and broadcasting over the WLAN to provide communication. Port 8888 is used for both sending and receiving. The DreamScreen

More information

FLAT WIDE DISPLAY FWD-50PX1. PROTOCOL MANUAL (USER CONTROL ONLY) 1st Edition

FLAT WIDE DISPLAY FWD-50PX1. PROTOCOL MANUAL (USER CONTROL ONLY) 1st Edition FLAT WIDE DISPLAY PROTOCOL MANUAL (USER CONTROL ONLY) 1st Edition Table of Contents 1. Communication Parameter... 3 2. Pin Configuration... 3 3. Communication Data Format... 3 4. General Function... 5

More information

RA8875. Character/Graphic. TFT LCD Controller. Application Note. Version 1.5 June, 28, RAiO Technology Inc. Copyright RaiO Technology Inc.

RA8875. Character/Graphic. TFT LCD Controller. Application Note. Version 1.5 June, 28, RAiO Technology Inc. Copyright RaiO Technology Inc. RAiO RA8875 Character/Graphic TFT LCD Controller Version 1.5 June, 28, 2013 RAiO Technology Inc. Copyright RaiO Technology Inc. 2011 RAiO TECHNOLOGY INC. 1/19 www.raio.com.tw Update History Version Date

More information

MTR-4. C8 Command to MODBUS Bridge User Manual F-1, No. 631, Chung Der Road, Sec 1, Taichung Taiwan.

MTR-4. C8 Command to MODBUS Bridge User Manual F-1, No. 631, Chung Der Road, Sec 1, Taichung Taiwan. MTR-4 C8 Command to MODBUS Bridge User Manual 404 19F-1, No. 631, Chung Der Road, Sec 1, Taichung Taiwan. TEL:886-4-2238-0698 FAX:886-4-2238-0891 Web Site:http://www.monicon.com.tw E-mail: sales@monicon.com.tw

More information

LEGO RCX Hitachi H8/3292

LEGO RCX Hitachi H8/3292 LEGO RCX Hitachi H8/3292 LISHA/UFSC Fauze Valério Polpeta Prof. Dr. Antônio Augusto Fröhlich {fauze guto}@lisha.ufsc.br http://www.lisha.ufsc.br/~{fauze guto} March 2003 March 2003 http://www.lisha.ufsc.br

More information

Serial Communication Control Interface User s Manual

Serial Communication Control Interface User s Manual User s Manual Edition 1.0, September 2015 www.moxa.com/product For the following products: MD-219 Series MD-224 Series MD-226 Series MPC-2190 Series MPC-2197 Series MPC-2240 Series MPC-2247 Series MPC-2260

More information

Technical Information. Command overview of Vision Systems

Technical Information. Command overview of Vision Systems Technical Information Command overview of Vision Systems Image analysis command Grab image 0x01 X X X X Shutter speed 0x07 X X X X Synchronous flash 0x49 X X X X Video mode 0x00 X X Display 0x05 X X X

More information

MCW Application Notes 24 th February 2017

MCW Application Notes 24 th February 2017 MCW Application Notes 24 th February 2017 www.motorcontrolwarehouse.co.uk Document number MCW-HEDY-001 Revision 0.1 Author Gareth Lloyd Product HEDY HD700 Title Summary HEDY HD700 Modbus Serial Communications

More information

Specification E2 Interface

Specification E2 Interface Specification E2 Interface Version 4.1 Name Date Created: Robert Mayr. 15.04.2011 Checked: Haider A. 15.04.2011 Approved: Reason for change: Text corrections TABLE OF CONTENTS 1 INTRODUCTION... 3 1.1 Overview..................................................................................................................

More information

Function Bloc Modbus RTU Master serial port Hostlink

Function Bloc Modbus RTU Master serial port Hostlink Function Bloc Reference MRTU_CPU_Master Revision 1.5 Author JP Viskovic Date 12/01/18 + Support http://support-omron.fr/ OMRON ELECTRONICS S.A.S. 14 Rue de Lisbonne 93561 Rosny-sous-Bois cedex Function

More information

MCU: Interrupts and Timers. Ganesh Pitchiah

MCU: Interrupts and Timers. Ganesh Pitchiah MCU: Interrupts and Timers Ganesh Pitchiah What s an MCU? Frequency = 8 MHz Time Period = 1/f = 0.125 us Code for Switching LED int a; voltage while(1) { a = PINA.0; input) If (a==1) PORTA.1=1; else PORTA.1=0;

More information

Exam 1. Date: February 23, 2016

Exam 1. Date: February 23, 2016 Exam 1 Date: February 23, 2016 UT EID: Printed Name: Last, First Your signature is your promise that you have not cheated and will not cheat on this exam, nor will you help others to cheat on this exam:

More information

PRELIMINARY DESCRIPTION

PRELIMINARY DESCRIPTION Modbus TCP to Relay output and 8 Digital inputs. Phone: +1 561 779 5660 email:datexel@datexel.com www.datexel.com User Guide MODBUS TCP/IP protocol Firmware Version : 80 PRELIMINARY DESCRIPTION Modbus

More information

Embedded assembly is more useful. Embedded assembly places an assembly function inside a C program and can be used with the ARM Cortex M0 processor.

Embedded assembly is more useful. Embedded assembly places an assembly function inside a C program and can be used with the ARM Cortex M0 processor. EE 354 Fall 2015 ARM Lecture 4 Assembly Language, Floating Point, PWM The ARM Cortex M0 processor supports only the thumb2 assembly language instruction set. This instruction set consists of fifty 16-bit

More information

Magic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Magic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name MPS Magic 8 Ball Lab Exercise Magic 8 Ball Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a printer

More information

HT95R6x CPT (Call Progress Tone) Decoder Function

HT95R6x CPT (Call Progress Tone) Decoder Function HT95R6x CPT (Call Progress Tone) Decoder Function D/N:AN0227E Introduction The CPT (Call Progress Tone), is a group of voice tones sent from the switchboard to the caller to indicate the call condition,

More information

Page 1 of 7. Samtron/Samsung 20S204DA2

Page 1 of 7. Samtron/Samsung 20S204DA2 Page 1 of 7 Samtron/Samsung 20S204DA2 Disclaimer This documentation based on try & error and should never be treated as official documentation. There is no guarantee that information listed in this document

More information

CS 4400 Fall 2018 Midterm Exam 2 Practice (Version 2)

CS 4400 Fall 2018 Midterm Exam 2 Practice (Version 2) CS 4400 Fall 2018 Midterm Exam 2 Practice (Version 2) Name: Instructions You will have eighty minutes to complete the actual open-book, opennote exam. Electronic devices will be allowed only to consult

More information

Program Block Editor and Compiler (PBEC)

Program Block Editor and Compiler (PBEC) Program Block Editor and Compiler (PBEC) For Hercules User Manual Version 1.7.5 2007 Dearborn Group Inc. 27007 Hills Tech Court Farmington Hills, MI 48331 Phone (248) 488-2080 Fax (248) 488-2082 http://www.dgtech.com

More information

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Lab Test III

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Lab Test III Department of Electrical and Computing Engineering UNIVERSITY OF CONNECTICUT ECE 3411 Microprocessor Application Lab: Fall 2015 Lab Test III There are 2 longer programming problems in this test. There

More information

variable 1. Start of Packet - is used to provide synchronization when parsing packets. Always 0xFC

variable 1. Start of Packet - is used to provide synchronization when parsing packets. Always 0xFC DreamScreen V2 WiFi UDP Protocol Rev 2 The DreamScreen-WiFi platform uses UDP unicasting and broadcasting over the WLAN to provide communication. Port 8888 is used for both sending and receiving. The DreamScreen

More information

GSM Library. Version 3.1. User Manual.

GSM Library. Version 3.1. User Manual. GSM Library Version 3.1 User Manual www.dizzy.co.za Contents Introduction... 3 Quick Start... 4 Routines and Events... 8 The Event Mechanism... 8 Power... 9 Date/Time (RTCC)... 10 IMEI Code... 10 PIN Code...

More information

CT-S300 Customization software

CT-S300 Customization software CT-S300 Customization software This software is made to utilize our CT-S300 by customizing. The software will be changed without prior notice. 1. Explanation of each screen 1-1. Model Information By pressing

More information

Introduction to the MC9S12 Hardware Subsystems

Introduction to the MC9S12 Hardware Subsystems Setting and clearing bits in C Using pointers in C o Program to count the number of negative numbers in an area of memory Introduction to the MC9S12 Hardware Subsystems o The MC9S12 timer subsystem Operators

More information

AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision )

AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision ) AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision 8-27-08) Changes from Version 9.2 1. The communication baud rate is raised to 9600. 2. Testing with

More information

8032 MCU + Soft Modules. c = rcvdata; // get the keyboard scan code

8032 MCU + Soft Modules. c = rcvdata; // get the keyboard scan code 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 { 0x25, 0x66 }, // "4" { 0x2E, 0x6D }, // "5" { 0x36, 0x7D }, // "6" { 0x3D, 0x07 }, // "7" { 0x3E, 0x7F }, // "8" { 0x46,

More information

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note a EE-219 Technical notes on using Analog Devices DSPs, processors and development tools Contact our technical support at dsp.support@analog.com and at dsptools.support@analog.com

More information

ECE 4510/5530 Microcontroller Applications Week 7

ECE 4510/5530 Microcontroller Applications Week 7 45/553 Microcontroller Applications Week 7 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences MISC Stuff Keypad revisited

More information

PPG Function of F2MC-16LX MCU Series as PWM

PPG Function of F2MC-16LX MCU Series as PWM PPG Function of F2MC-16LX MCU Series as PWM Introduction... 1 PPG Function... 1 Important Register Configuration... 2 Flow chart... 3 Program Code... 4 Fujitsu Microelectronics America, Inc. i PPG Function

More information

Next Generation Intelligent LCDs

Next Generation Intelligent LCDs Next Generation Intelligent LCDs 2D Run-Length Encoding Application Note Version 1.0 Document Date: April 30, 2013 Copyright by demmel products gmbh 2004-2013 Unless otherwise noted, all materials contained

More information

Systems Programming. Lecture 11 Timers

Systems Programming.   Lecture 11 Timers Systems Programming www.atomicrhubarb.com/systems Lecture 11 Timers Section Topic Where in the books Zilog PS220 (ZNEO Z16F Series Product Specification) What is a Timer (a microcontroller timer) Timers

More information

Timer1 Capture Mode:

Timer1 Capture Mode: Timer1 Capture Mode: Interrupt Description Input Conditions Enable Flag Timer 1 Trigger after N events N = 1.. 2 19 100ns to 0.52 sec RC0 TMR1CS = 1 TMR1IF Timer 1 Capture Mode 1 Timer 1 Capture Mode 2

More information

Timer Counter and Interrupt. Equation (16 bits counter, Mode 1, 16MHz):

Timer Counter and Interrupt. Equation (16 bits counter, Mode 1, 16MHz): Equation (16 bits counter, Mode 1, 16MHz): THxTLx = 65536 - (Tt * 16.777216 e6) where: Tt: Target time x: Timer/Counter (0, 1 and 2) THx: Timer high byte TLx: Timer low byte Used Interrupts: 1 (Address,

More information

Cwlinux Limited CW1602. CW1602 Datasheet. Revision 1.0 1

Cwlinux Limited CW1602. CW1602 Datasheet. Revision 1.0 1 CW1602 Datasheet Revision 1.0 1 CW1602 Datasheet by Cwlinux Limited Published August 14, 2013 Copyright 2013 Cwlinux Limited, All rights reserved. Cwlinux Limited reserves the right to make changes without

More information

CSEE bit AES decryption. Shrivathsa Bhargav Larry Chen Abhinandan Majumdar Shiva Ramudit. Spring 2008 Project Design Document

CSEE bit AES decryption. Shrivathsa Bhargav Larry Chen Abhinandan Majumdar Shiva Ramudit. Spring 2008 Project Design Document CSEE 4840 128-bit AES decryption Shrivathsa Bhargav Larry Chen Abhinandan Majumdar Shiva Ramudit Spring 2008 Project Design Document CSEE 4840 Table of contents Abstract 1 1. Introduction 1 2. Hardware

More information

F²MC-16FX FAMILY MB96340 KEY MATRIX INTERFACE USING I/O PORT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

F²MC-16FX FAMILY MB96340 KEY MATRIX INTERFACE USING I/O PORT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note Fujitsu Microelectronics Europe Application ote MCU-A-300238-E-V12 F²MC-16FX FAMIL 16-BIT MICROCOTROLLER MB96340 KE MATRIX ITERFACE APPLICATIO OTE Revision History Revision History Date Issue 2007-04-16

More information

(Embedded) Systems Programming Overview

(Embedded) Systems Programming Overview System Programming Issues EE 357 Unit 10a (Embedded) Systems Programming Overview Embedded systems programming g have different design requirements than general purpose computers like PC s I/O Electro-mechanical

More information