Searching \ for '[PIC]: Generation d'un Signal =?iso-8859-1?Q?Carr=' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'Generation d'un Signal Carr='.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Generation d'un Signal =?iso-8859-1?Q?Carr='
2001\01\22@012913 by Dan Michaels

flavicon
face
Jacky Joulin wrote:

>Je recherche un exemple de s/programme afin de généré un signal carré avec un
>PIC.
>PIC utilisé       : 16F84
>Freq               : 4Mhz
>sortie sur pin   : RB5
>F signal carré  : ~ 1000 Hz
>
>Ce s/programme doit pouvoir fonctionner sans bloquer le programme principal.
>( Je crois qu'il faut utiliser la gestion des INT Timer mais  je n'y arrive
>pas ...)
>
>Je souhaite incorporer ce S/P dans un prog écris en basic avec PicBasic Pro
>Compiler,.


Not quite sure what you are talking about here :), but it's a minor inconvenience to generate an exact 1000hz output using Timer0
on a PIC running off a 4Mhz crystal.
However, if you use a 4.096Mhz crystal instead, then you can
use a prescaler value of 2 with Timer0, and get exactly 1Khz.

OPTION = 00h    ; TMR0 source=clock, prescaler to TMR0, prescale by 2.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\01\22@015031 by Dan Michaels

flavicon
face
Jacky Joulin wrote:
>Merci pour votre aide.
>
>Je ne recherche pas une grande précision sur la Fréq de 1000 Hz. ( +/-  30 hz
>me convient).
>
>Quel type de code dois-je écrire en basic pour obtenir cette sortie sur le
>portB.5
>

Is past my bed time - and I don't have this code.
Can anyone point Jacky at TMR0 code for performing interrupts at ~1000 Khz rate on a 16C84 running of 4Mhz xtal?
Preferably written on PicBasic Pro compiler.

bon soir,
- danM

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...