codevison AVR port question

Mar 06, 2006 3 Replies

Is it possible to select the 4 most or 4 least significant bits of an IO port of an AVR device with codevision C ?



for example, i want to drive my lcd device with the 4 MSB's of PORT C (C.3 -> C.7)



soo is there something like PORTC


Good advice in general, but the combined statement should work fine. The lack of sequence point between reading and writing PORTC in your example is not a problem.

Thad

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required