EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Parallex RFID_PIC16f877a_LCD_Hi Tech C

Parallex RFID_PIC16f877a_LCD_Hi Tech C

|

Projects › Projects › Parallex RFID_PIC16f877a_LCD_Hi Tech C

  • This topic has 0 replies, 1 voice, and was last updated 14 years, 10 months ago by Jaden Ng.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • October 1, 2011 at 6:42 am #4928
    Jaden Ng
    Participant

    Hi guys,
    I need your help to provide me a HTC code that can relate the RFID to my LCD.i want the RFID reader to read the RFID tag’s code and send it to my lcd to display out the code.
    I have uploaded the picture of my RFID

     

    RFID model:Parallex RFID

    http://www.trossenrobotics.com/store/p/5378-Parallax-RFID-Card-Reader-Serial-.aspx

    RFID datasheet:

    http://www.parallax.com/dl/docs/prod/audiovis/RFID-Reader-v1.1.pdf

     

    this is my simple code to show character in display but how to do to make the lcd show out the code when RFID tag is sensed by RFID reader.

    Code:

    /*————————– BEGIN —————————-*/
    #include<htc.h>
    __CONFIG(0x3F39);
    #define _XTAL_FREQ 4e6
    #define RS RC4
    #define EN RC5
    #define databits PORTB

    /*—————-PORT SETTINGS——————-*/
    void pic_init()
        {
         TRISC4=0;
         TRISC5=0;
         TRISB=0;
        }

    /*—————–LCD FUNCTIONS ———————-*/
    void LCD_STROBE(void)
        {
        EN = 1;
        __delay_us(0.5);
        EN = 0;
        }
    void data(unsigned char c)
        {
        RS=1;
        __delay_us(40);
         databits = ( c >> 4 );
        LCD_STROBE();
        databits = ( c );
        LCD_STROBE();
        }
    void cmd(unsigned char c)
        {
         RS=0;
        __delay_us(40);
        databits = ( c >> 4 );
        LCD_STROBE();
        databits = ( c  );
        LCD_STROBE();
      __delay_ms(2);
        }
    void clear(void)
        {
         cmd(0x01);
        __delay_ms(2);
        }
    void lcd_init()
        {
        __delay_ms(20);
        cmd(0x28 );
        __delay_ms(1);
        cmd(0x28 );
        __delay_ms(1);
        cmd(0x28 );
        cmd(0x28 ); // Function set (4-bit interface, 2 lines, 5*7Pixels)
        cmd(0x0c); // Make cursorinvisible
        clear(); // Clear screen
        cmd(0b00000110); // Set entry Mode(auto increment of cursor)
        }
    void string(const char *q)
        {
        while(*q)
      {

       data(*q++);
      }
        }

    /*——————MAIN FUNCTION———————–*/
    main()
        {
        __delay_ms(50);
        pic_init();
        lcd_init();
        while(1)
            {
            cmd(0x83);
            string(“Blind Audio”);
            cmd(0xc0);
            string(“Guidance System”);
            while(1);
            }
        }
    /*—————- END ————————–*/

     

     

     

     

     

     

     

     

     

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy | Advertising

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise