- Mon Aug 18, 2008 2:33 pm
#53890
hi,
i'm new to 8051 programming and would really appriciate help,
i need to build a clock for my project an for that i've decided to use an 8051 port.
all i need is to get a square wave of precisely 1Hz frequency from any one of the pins any port.
please assist on a suitable Xtal frequency and other calculations, and if possible please help with the code.
remember, i need exactly 1hz freq, so as to get a half sec pulse (50% duty cycle)
i'm new to 8051 programming and would really appriciate help,
i need to build a clock for my project an for that i've decided to use an 8051 port.
all i need is to get a square wave of precisely 1Hz frequency from any one of the pins any port.
please assist on a suitable Xtal frequency and other calculations, and if possible please help with the code.
remember, i need exactly 1hz freq, so as to get a half sec pulse (50% duty cycle)