Hi, I am having a problem with an S9S12G96, I have to use the AD port as output. On CODEWARRIOR Processor Expert correctly initializes the port:
MOVB #255,DDR0AD
MOVB #255,DDR1AD
I make it clear that I do not use these ports for anything else (ADC...)
The ADH and ADL ports seem to be configured as output, but I cannot control them... the lines:
MOVB #255, PT1AD
MOVB #255, PT0AD
Seem inoperable, outputs remain at 0
Someone ? to help me ?
THANKS !!!
Thnk you for your reply ...
With over 40 years of experience, fortunately I don't make such mistakes.
However I found the anomaly on a forum:
Just run these 2 lines of code:
MOVB #255, ATDDIENL
MOVB #255, ATDDIENH
While the ADC device is disabled!!!!
Good day
Didier
Hi,
I suppose external circuits connected to the AD do not influence output value at the pin.
Do you measure a correct port PT1AD registers sets pins PAD0-PAD7 of the MCU?
Have you tested it out of PE tool?
Best regards,
Ladislav