Word Output in 40X1

picguate

New Member
:confused: Friends, I need to know if possible to let out a Word variable at the same time in a 40X1 using the PORTA and PORTC, this means that I want to get the total of the 16 bits at the same time not separately using first pins = %11111111 and after pinsc = %11111111.

I hope some body could help me.

Thanks,

PicGuate
 

Technical

Technical Support
Staff member
Sorry no, there is no way to do this at the same time. If your word is w0 (made up of b0 and b1) you need to do
let pins = b0
let pinsc = b1

the actual time delay would be pretty minimal anyway.
 

westaust55

Moderator
Word Output from 40X1

Another possibility would be to use a 16-bit 12c based IO expander. MCP23016 or MCP23017

Then in the one HI2COUT command you can send two data bytes at once. Again a slight, but minimal, delay in the first and second byte being set.
 

inglewoodpete

Senior Member
An alternative that would allow all 16 bits to change at the same instant would be to use 2 cascaded 74HC595 chips. These are shift registers with an additional clock line to strobe the contents of the preloaded shift register(s) to their respective output pins. The strobe line (1 pin from the PICAXE) would be connected to the output latch strobe line of all shift register chips.
 
Top