meera83 This user has been deleted
|
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.. |
|
|
|
|
|
|
|
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? |
|
|
|
|
|
|
meera83 This user has been deleted
|
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 |
|
|
|
|
|
|
meera83 This user has been deleted
|
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.. |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
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? |
|
|
|
|
|
|
|
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 ] |
|
|
|
|
|
|
|
buat program uk cip ngn utk smartcard sama ke? |
|
|
|
|
|
|
| |
|