Hi, could you please give me some feedback on my answers please?
------------
QUESTION
Briefly describe the function of the following internal elements of a 16F628
microcontroller :
i) PORTB
ii) The STATUS register
iii) The OPTION register
iv) The Stack
v) The CMCON register
ANSWER
i) PortB is an 8 bit register located in BANK0, which controls the state (high / low) of the port b bits, B0 through to B7.
ii) The status register contains the result of the arithetic or logical operations of the program.
iii) The contents of W are loaded into the option register. This instruction is used to prescale, i.e set TMR0 timing rate.
iv) The stack is the name given to the memory location that keeps track of the programs address when a call instruction is made. There is an eight level stack in the 16F628, meaning it can make eight total jumps and the stack will be able to return to the original program.
v) The CMCON register controls if the comparitor pins are enabled. By default they are enabled, which means that they are set to compare the input voltage with a reference voltage.
------------
I think these answers might be a bit flaky, so any feedback is appreciated.
James
------------
QUESTION
Briefly describe the function of the following internal elements of a 16F628
microcontroller :
i) PORTB
ii) The STATUS register
iii) The OPTION register
iv) The Stack
v) The CMCON register
ANSWER
i) PortB is an 8 bit register located in BANK0, which controls the state (high / low) of the port b bits, B0 through to B7.
ii) The status register contains the result of the arithetic or logical operations of the program.
iii) The contents of W are loaded into the option register. This instruction is used to prescale, i.e set TMR0 timing rate.
iv) The stack is the name given to the memory location that keeps track of the programs address when a call instruction is made. There is an eight level stack in the 16F628, meaning it can make eight total jumps and the stack will be able to return to the original program.
v) The CMCON register controls if the comparitor pins are enabled. By default they are enabled, which means that they are set to compare the input voltage with a reference voltage.
------------
I think these answers might be a bit flaky, so any feedback is appreciated.
James