Hi Matt,

This question belongs at the jal list rather then this list, which is jallib
specific.

But having said this: with the defines, you can set input vs output with the
*_out names (and with your example, you program all pins as output). With
the assignment to in, you deterime the level of the output pins, so in your
example, the output pins get the *level* of all_input.
(Unlike the atmel, pic's use the same register to read and set the pin
level. There is a wrapper to make this work okay in all circumstances).

Joep



2009/6/22 mattschinkel <[email protected]>

>
> Hi, I am trying to make a lib for IDE/ATA hard disks but I cannot
> figure out how to make bi-directional pin assignments. Is this
> correct? IDE_DATALOW_OUT & IDE_DATAHIGH_OUT doesn't seem to work.
>
>
> VAR VOLATILE BYTE    IDE_DATALOW_IN     is portb           ; LOW DATA
> BITS
> VAR VOLATILE BYTE    IDE_DATALOW_OUT     is portb_direction ; LOW DATA
> BITS
> VAR VOLATILE BYTE    IDE_DATAHIGH_IN     is portd           ; HIGH
> DATA BITS
> VAR VOLATILE BYTE    IDE_DATAHIGH_OUT     is portd_direction ; HIGH
> DATA BITS
>
> IDE_DATALOW_IN  = all_input
> IDE_DATALOW_OUT = all_output
> IDE_DATAHIGH_IN = all_input
> IDE_DATAHIGH_OUT = all_output
>
>
> Thanks,
> Matt.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to