CARI Infonet

 Forgot password?
 Register

ADVERTISEMENT

12
Return to list New
Author: meera83

how to start with PIC???

[Copy link]
meera83 This user has been deleted
 Author| Post time 24-12-2006 10:27 PM | Show all posts
thank a lot to all of you...

i now not so blur with different between compiler, assembly...

i think i have to spend some time to make me understand about MPLab and PIC16F877A assemly code..
hopefully it will not be too late to finish my project after i understand hoe to make use of PICmicro..
Reply

Use magic Report


ADVERTISEMENT


Post time 26-12-2006 04:31 PM | Show all posts
Yep, its as BeanDiesel says, every assembly language instruction is equivalent to a predefined set of microcoded machine executable instructions. Since they're predefined, the time that it takes to execute each assembly language instruction is fixed. For example, each 16F877a instruction takes 4 clock cycles to execute. If you use a 4Mhz crystal oscillator (which is a clock signal generator that produces 4 million  cycles of 50% duty cycle per second), then each instruction will take 4 clock cycles = 1us to execute. Basically, the microcontroller processor can execute 1 million instructions every second.

However, most of the time, counting clock cycles becomes really tedious when your program spans even past a few hundred lines, and we don't usually mind if the real-time response for our application lags by a few miliseconds since our applications are typically control oriented. What that means is, for example, a servo unlocking mechanism... you don't really notice if the servo starts moving a few milisconds later than immediately. We're only concerned with counting clock cycles in time-critical applications e.g. generating the pwm signal for motor speed control. Nevertheless, even in this case, you don't really have to be accurate to the cycle, since even if you miss or overshoot by a few cycles, the effects only become obvious, say 10 years later. :-)

Now, bout meera's post, i don't really follow... you want to design an interface which can read out what has been shown by four separate 7 segment display continuously..
Do you mean that you want to write a 16f877a application that will continuously display four hexadecimal characters on four separate 7 segment dispays?
Reply

Use magic Report

meera83 This user has been deleted
 Author| Post time 1-1-2007 10:56 AM | Show all posts
Originally posted by reinloch at 26-12-2006 04:31 PM
Yep, its as BeanDiesel says, every assembly language instruction is equivalent to a predefined set of microcoded machine executable instructions. Since they're predefined, the time that it takes to ...



my application on PIC16F877A not to display four 7 segment display..

four 7-segment display shows different number, for voice out the display, i use one chip ISD2532~record/playback chip.. so in order to make the ISD2532 read out what have been shown at four 7segment display, i use
Reply

Use magic Report

meera83 This user has been deleted
 Author| Post time 1-1-2007 10:58 AM | Show all posts
Originally posted by reinloch at 26-12-2006 04:31 PM
Yep, its as BeanDiesel says, every assembly language instruction is equivalent to a predefined set of microcoded machine executable instructions. Since they're predefined, the time that it takes to ...


my application on PIC16F877A not to display four 7 segment display..

four 7-segment display shows different number, for voice out the display, i use one chip ISD2532~record/playback chip..
so in order to make the ISD2532 read out what have been shown at four 7segment display, i plan to use PIC to control ISD2532  to read out four display continously..
Reply

Use magic Report

Post time 10-1-2007 01:04 PM | Show all posts
panjang gila comment2 korang ek
hahahahah
btw aku guna RIDE tuk buat coding n jz build all tuk dptkan hex file.
then aku guna cip Philips P89C668

ada gak guna EEPROM and EPROM from Atmel

aku prefer guna c++ compare than assembly
tuk assembly aku guna sofwatre ultra edit
pastu aku assemble guna IASM11
Reply

Use magic Report

Post time 16-1-2007 03:21 PM | Show all posts
can i ask something...to program the pic (i use c language) i need to use mplab IDE or just normal mplab?and one more..is it the PIC16F877A suitable for C language?
Reply

Use magic Report

Follow Us
Post time 20-1-2007 04:10 PM | Show all posts
waaa...ni semer utk ape ek?electrical nyer faculti ke yg blaja mende ni semer?

[ Last edited by  poyoex at 20-1-2007 04:11 PM ]
Reply

Use magic Report

Post time 20-1-2007 04:12 PM | Show all posts
buat program uk cip ngn utk smartcard sama ke?
Reply

Use magic Report


ADVERTISEMENT


12
Return to list New
You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

30-5-2024 09:37 PM GMT+8 , Processed in 0.093074 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list