Adjustable periodic waveform generator on PIC12F1612
Posted: Thu Jan 14, 2021 7:22 pm
I want to build a simple generator using PIC12F1612 chip
The generator works, but I can't change its frequency.
The signal is generated by means of TMR2 64000Hz interrupt
The variable "multiplier" allows you to change the frequency
multiplier = 0 generator turned off
multiplier = 1 frequency 250Hz
multiplier = 2 frequency 500Hz
.................................................. ....
multiplier = 10 frequency 2500Hz
The generator will be controlled from another controller (16F1829)
I care about the synchronous work of both chips. I am using one 8MHz clock generator for both chips.
I want the generator on PIC12F1612 to start working only after receiving permission from the master system (16F1829). I tested using the IOC PORT A1 to detect Triger on Faling Edge but it doesn't work. I don't know if you can use two interrupts at the same time?
I want the "0" pulse length at input A1 to control the frequency. I am asking for advice.
The generator works, but I can't change its frequency.
The signal is generated by means of TMR2 64000Hz interrupt
The variable "multiplier" allows you to change the frequency
multiplier = 0 generator turned off
multiplier = 1 frequency 250Hz
multiplier = 2 frequency 500Hz
.................................................. ....
multiplier = 10 frequency 2500Hz
The generator will be controlled from another controller (16F1829)
I care about the synchronous work of both chips. I am using one 8MHz clock generator for both chips.
I want the generator on PIC12F1612 to start working only after receiving permission from the master system (16F1829). I tested using the IOC PORT A1 to detect Triger on Faling Edge but it doesn't work. I don't know if you can use two interrupts at the same time?
I want the "0" pulse length at input A1 to control the frequency. I am asking for advice.