Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC12F683 mikro c pro code ADC

Status
Not open for further replies.
To do that you dont need a serial LCD. You receive data through UART or SPI and convert it to char and send it to LCD using parallel 4 bit or 8 bit mode.
 
You could use something like this:

Code:
// LCD module connections
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;

sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
// End LCD module connections

void main() {
     unsigned char i;
     unsigned char Rev;
     
     LCD_Init();
     LCD_Cmd(_LCD_CLEAR);
     LCD_Cmd(_LCD_CURSOR_OFF);
     PORTC = 0;
     TRISC = 0x80;
     UART1_Init(9600);

     while(1){
              if (UART1_Data_Ready){
                 Rev = UART1_Read();
                 i++;
                 if (i > 15){
                    i = 0;
                    LCD_Cmd(_LCD_CLEAR);
                 }
                 Lcd_Chr_CP(Rev);
                 delay_ms(100);
              }
     }
}

Go through these mikroC libraries:
http://www.mikroe.com/download/eng/documents/compilers/mikroc/pro/pic/help/lcd_library.htm
http://www.mikroe.com/esupport/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=157

Hope this helps.
Tahmid.
 
If i want to made InfraRed signal transmitter so what is the carrier frequency and how to perform modulation by PIC12F683.
Is it possible by PIC12F683?
Another question is that i can discuss with you by online.

- - - Updated - - -

I visited your blogs your projects are great and knowledgable.Did you learn Microcontrollers by any teacher or by self-study.I want to study microcontrollers in depth and make projects.
 

I visited your blogs your projects are great and knowledgable.Did you learn Microcontrollers by any teacher or by self-study.I want to study microcontrollers in depth and make projects.

My dad introduced me to PIC16F84A and taught me the basics. From there on, it was self-study using datasheets, reference manuals, books, online tutorials and various other online resources. You can learn microcontroller programming on your own if you put in the effort and time.

If i want to made InfraRed signal transmitter so what is the carrier frequency and how to perform modulation by PIC12F683.
Is it possible by PIC12F683?

A common frequency is 38kHz (or 40kHz).

You need to use some protocol. Two very commonly used protocols are SIRC (https://www.sbprojects.com/knowledge/ir/sirc.php) and RC5 (https://www.sbprojects.com/knowledge/ir/rc5.php).

Go through this website: https://www.sbprojects.com/knowledge/ir/index.php

Hope this helps.
Tahmid.
 
Thanks to you and your dad.

If i successfully generate 40kHZ frequency then how to modulate it ??

- - - Updated - - -

where is the TxD and RxD pins of PIC16F877A.
 
Last edited:

Actually i want to make IR transmitter and i have TSOP1738 receiver but i wanna IR transmitter with acceptable range of 5m to 10m and I connect this receiver and transmitter on both ends of door, if reception is disturb by crossing any person the alarm will sound.
 

Please check attached circuit and code it can not work proper.
 

Attachments

  • PWM_Code.txt
    231 bytes · Views: 74
  • PWM.gif
    PWM.gif
    63.9 KB · Views: 89

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top