electronics forum

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

Minimum Delay using a PIC?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Minimum Delay using a PIC?
Author Message
amitdandyan



Joined: 08 May 2009
Posts: 14


Post23 Sep 2009 10:48   

Minimum Delay using a PIC?


Can anyone please tell me, what is the minimum delay I can get using a PIC ? I want a delay of 500ns.....Please also specify the series of the PIC...
Back to top
btbass



Joined: 20 Jul 2001
Posts: 1187
Helped: 113
Location: Oberon


Post23 Sep 2009 17:13   

Re: Minimum Delay using a PIC?


The minimum delay would be one 'nop()' instruction.
Which with a 4 Meg oscillator would give you 1uS delay.
An 8 Meg oscillator would give you your 500nS delay.
Back to top
Google
AdSense
Google Adsense




Post23 Sep 2009 17:13   

Ads




Back to top
amitdandyan



Joined: 08 May 2009
Posts: 14


Post06 Oct 2009 10:07   

Re: Minimum Delay using a PIC?


void main()
{
TRISB = 0;
PORTB = 0;
for(;;)
{
PortB.F0 = 0;
asm
NOP;
PortB.F1 = 1;
}
}

I have developed this program to get the minimum delay from PIC16F876-A.....I hv used a crystal of freq. 20MHz.....but i hv not been able to solve the purpose...as no output is visible on Oscilloscope....!!!!!!!!!!!!!!!!!!!
Please help...
Back to top
madhan7710



Joined: 19 Jun 2007
Posts: 13
Helped: 1


Post06 Oct 2009 10:57   

Re: Minimum Delay using a PIC?


Hi,

Try giving equal delay for both on cycle and off cycle.
like this...


loop:

portb.0 =0
nop
portb.0 =1
nop

goto loop
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 -> Minimum Delay using a PIC?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
1 second delay using PIC Microcontroller (5)
Two's complement using minimum hardware (5)
Delay in PIC (10)
pic delay : manish (4)
20us delay for PIC (2)
Power-on Delay with PIC Microcontroller (4)
PIC micro assembler delay code (9)
SIMULATIONG DELAY IN MPLAB (PIC 16F84A) (4)
PIC Programming . Problem Reg- Time Delay (1)
Pic project(16F84) using pic basic pro (1)


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