At 09:29 PM 3/17/02 +0100, you wrote: >Hi all > >I was wondering if its possible to make 2 oscillators running in one pic >at the same time ? >the PIC is a 12C50x with external 4MHz crystal and oscillators should be >on 100KHz and 50Hz. > >Output on any availble GPIO pin is ok ... You just want two outputs, one at 100kHz and one at 50Hz, and the PIC does nothing else? This shouldn't be any problem, just write a loop that generates the 50Hz and every 5th cycle of that loop will be a bcf or bsf to toggle the 100kHz output (5 microseconds per half-cycle). Use NOP instructions to pad each segment to exactly 5usec if necessary. A bit tedious, but straightforward. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com 9/11 United we Stand -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu