David Cary [mailto:dcary@BRUNSWICKOUTDOOR.COM] wrote > Unfortunately, the Microchip ``MPLAB-ICD Module'' uses the > top 2 lines of PortB to communicate back to my big screen. > I was hoping that a subroutine that > -- make PortB all outputs > -- write out the proper value on that data bus > -- pulse chip select and Read/Write lines properly > would actually do all that before ICD grabbed those 2 pins back again, PB6 and PB7 are reserved by ICD, you cannot use these pins temporarly for other things. Since the PIC is in DEBUG mode (DEBUG bit in configuration word), these pins have special meaning (e.g. MPLAB can interrupt the running processor anytime). > I'm tempted to re-wire so I get 6 data bits on PortB, and 2 > other data bits on some other port ... ugly, but easier to test. That's one solution. Easier is an adapter 40pin PIC --> 28pin PIC, where you route PORTD to PORTB of the 28pin device. No special coding required, just a simple #define or EQU instruction at top of your program. Frank. ------------------------------------- GSP Sprachtechnologie GmbH Frank Wollenberg HW-Entwicklung Tel.: +49 (0)30 769929-78 Fax: +49 (0)30 769929-12 eMail: f.wollenberg@gsp-berlin.de -- GSP Sprachtechnologie GmbH Teltowkanalstr.1, D-12247 Berlin Tel.: +49 (0)30 769929-0 Fax: +49 (0)30 769929-12 eMail: Info@gsp-berlin.de Web: http://www.gsp-berlin.de -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body