In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jdemeyer wrote: Thanks! Here's the complete program. In my source, I use an INCLUDE so it is in assembly. DEVICE SX48,OSCHS1 FREQ 50000000 PROGRAM Start Start: INCLUDE "PortConfig.src" ;this is the following code ;============================ ; ;Port Configuration ; ;============================ ;MODE Valid Values MODELogicLevel EQU $0d MODEPullUp EQU $0e MODEDirection EQU $0f ;Configure Ports ; LOGIC LEVEL MODE MODELogicLevel ;Port E mov !re,#%00000000 ;all TTL ; PULL UP MODE MODEPullUp ;Port E mov !re,#%10000000 ;pull ups on inputs ; DIRECTION MODE MODEDirection ;Port E mov !re,#%01111111 ;re.7 is an output mov re,#%10000000 ;all inputs low ' 'the original code goes here ' LOOP1: GOTO LOOP1 Joe ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=130245#m130256 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)