Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Define ports

2004-07-20 by David VanHorn

At 08:34 PM 7/20/2004 +0200, Jørn Tore Ørsland wrote:

>How can i define 2 10bit io ports without defining PORTx.X ?
>I want to set one bit of the port and leave the others. 

You can equate things, like this:


.equ    It_PORT = PORTA
.equ    It_DDR  = DDRA
.equ    It_PIN  = PINA                  

;PORT A hardware equates
.equ    SER_RTS = 1     ; IN    
.equ    SER_RXD = 2     ; OUT   
.equ    SER_CTS = 3     ; OUT   
.equ    DEBUG   = 7     ; OUT   

But I don't see any way to make two ports look like one port, especially a 10 bit one..

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.