- #1
virdip
- 1
- 0
Hey friends, I am trying to make a digital capacitance meter by using a HSC08 microcontroller chip (MC9S08QG8). Unfortunately this is one of those courses where one doesn't know anything because of lack of pre-requisites. Anyhow (enough complaining) what I have been trying to do is the following:
Connect the 555 timer to the IRQ pin of the chip. The 555 timer circuit has the unknown Capacitor attached to it. Now I am trying to measure the number of signals over a 7.5s period. I understand that I need an interrupt service subroutine to count the number of signals for this duration. However I am not sure how to control the count timing. I have been trying to use a delay subroutine such that the IRQSC register is set for counting in cycle of that delay.
Connect the 555 timer to the IRQ pin of the chip. The 555 timer circuit has the unknown Capacitor attached to it. Now I am trying to measure the number of signals over a 7.5s period. I understand that I need an interrupt service subroutine to count the number of signals for this duration. However I am not sure how to control the count timing. I have been trying to use a delay subroutine such that the IRQSC register is set for counting in cycle of that delay.
Last edited: