Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Paul Maddox

Stefan,

> Why, and if yes how, can i get something like that:
> PORTC.0 = 1;
> or
> PC0 = 1;
> or if it must be
> PORTC.BIT0 =1;

why don't you use #define?
to do some of this?

A lot depends on your compiler, for example CV-AVR is happy with ;-
PORTC.0 = 1;

PAul

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.