electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

i'm at a critical part to completion.


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> i'm at a critical part to completion.
Author Message
doshie



Joined: 28 May 2009
Posts: 1


Post08 Sep 2009 22:05   

critical part


as the matter stated, i did my part of the programming... im using jhd 162a lcd, pic 16f877a, and an unknown wiegand RFID reader and am using CCS. The following codes written is running fairly well and might need some optimization. but thats not the focus here.

im trying to interface 2 more components to the ADC input port and output port, namely the laser pointer and a photodiode for my "RFID security project".

i tried to simulate the ADC programming in proteus but it doesnt work. Therefore im referring to the experts if you may help me. im having problem with the programming, as the simulation in proteus is not applicable for practical circuit due to timing and so on which i do not know of.

i only manage to come up with these (the following attachment) with my lack of knowledge and understanding of the PIC programming. I am still new to PIC programming.

Thank you in advance for any thoughts, advice and help that may be given.

Here we go....
Back to top
Google
AdSense
Google Adsense




Post08 Sep 2009 22:05   

Ads







Sorry, but you need login in to view this attachment

Back to top
Ave_Rapina



Joined: 06 Jan 2004
Posts: 121
Helped: 14
Location: Po


Post13 Sep 2009 22:56   

Re: i'm at a critical part to completion.


Hello,

I think you are using ccs.

To configure an use an Adc of the micro here are the steps.

#device adc=8 or 10 -> bits to use

set_tris_porta(0x00000001); you can skip this whe you use setup_adc_port
setup_adc_ports(AN0|VSS_VDD); For the an0 input, or ANO_To_ANX for more,
setup_adc(ADC_CLOCK_INTERNAL); Use of the internal clock


set_adc_channel(0);
and them var=read_adc();

You can Simulate this in proteus without any problem

Regards
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> i'm at a critical part to completion.
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
when draw the dc/dc layout, which part is critical? (6)
Delay configuration completion by DLL (3)
Plz Help me in Completion of my Project (2)
Plz Help me in Completion of my Project (1)
IEEE Paper Request - Positive-definite Toeplitz completion.. (1)
IEEE Paper Request- Positive-definite Toeplitz completion... (1)
how to create part table in part developer (3)
communication qustions part 1and part 2 (1)
RF Microwave Tools part 1 - part 64 (5)
Split part in part developer (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS