I have posted a question in
- posted
16 years ago
I have posted a question in
Cheers
messagenews: snipped-for-privacy@s12g2000prg.googlegroups.com...
pin assignments right now with the
the microcontroller communicating to a LCD
card using SPI and a RTC also using SPI. I have a
setting the rest (all the a/d input numbering
purposes?
How would I do it? According to the documentation, if I use AN10, I would have to also initialize AN0 - AN9 as analog inputs as well, therefore wasting those I/O for something else.
it be easier using I2C?
Do you mean using separate chip select signals on the slave select pin?
to getting real clock time stamps?
periodically from a hardware RTC.
interrupt would be called when the input
normal external interrupts?
supply voltage drops below/rises above a certain
would want to use it. Can anyone post an
messagenews: snipped-for-privacy@s12g2000prg.googlegroups.com...
pin assignments right now with the
the microcontroller communicating to a LCD
card using SPI and a RTC also using SPI. I have a
setting the rest (all the a/d input numbering
purposes?
Not quite. There are several 'parts' to the setup on the pins. The setup in the analog section, says that the input pins selected, _will_ be routed to the analog input multiplexer. However a pin that is setup as an analog input, can still be driven as a logic output. If you look at the pin settings table, to use a pin as an analog input, requires it to both be selected in the analog setup, and also have the TRIS set to '1'. If the TRIS is set to '0', the pin can still be driven. If you look at the bottom of page 105, in the data sheet, it gives a 'caveat' for this, but the same caveat, implies you can actually use the pins despite the analog setting. This increases the noise present in the analog section of the chip, and you can get unacceptable leakages if the external Vref signals are used,and are significantly below the main supply rails. This is made plain if you look at the pin table in the data sheet (10.1), and look for example, at the entry for AN0. On the line for RA0/AN0, you see the comment against the entry for TRIS, and I/O set to '1' - does not affect digital output.
it be easier using I2C?
to getting real clock time stamps?
periodically from a hardware RTC.
interrupt would be called when the input
like normal external interrupts?
supply voltage drops below/rises above a certain
would want to use it. Can anyone post an
The fault input, is designed for use wth the PWM modules. It disables the PWM outputs, when triggered, as you would require if a fault condition existed in the drivers...
Best Wishes
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.