Crystal

tjetson

Senior Member
I wish to purchase this sensor:
http://www.futurlec.com/HP03D.shtml

It requires a 32k crystal. Is there a Picaxe command I can use (I am using 20X2) that will allow me to connect a picaxe pin to the crystal pin to replace the crystal?

In other words, can I generate a 32k signal instead of having the crystal?
 

tjetson

Senior Member
Solved

Thanks, I had not seen his post regarding this until just now.

Do not forget that you will also need a 32kHz (PICAXE PWM or from watch crystal with logic buffer) as a clock for the pressure sensor.
 

westaust55

Moderator
And . . .
if you have a DS1307 or DS1338 (or similar) in your project

instead of PWM with the PICAXE, see my thread with program listing:
http://www.picaxeforum.co.uk/showthread.php?t=14661
which used: PWMOUT 3, 30, 61 ; pin 3 at 32768kHz with 50% duty cycle for HP03 Clock for 4MHz clock speed

you can change the control register from the typical value to output 32kHz rather than 1 Hz which I have since done for a home brew PICAXE data logger with the HP03 series pressure sensors
change the RTC control register value from $10 to $13
 
Last edited:

tjetson

Senior Member
And . . .
if you have a DS1307 or DS1338 (or similar) in your project

instead of PWM with the PICAXE, you can change the control register from the typical value to output 32kHz rather than 1 kHz
Really? That's cool. Unfortunately, in my current PCB design, it is MUCH easier to use the Axe's pin. If I need to redesign the project (quite likely :p ) then I will probably use your idea. Thanks heaps
 
Top