From 0698982318a89f597351b2f698fb359575f2517c Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Sun, 10 Jun 2012 21:11:03 +0000 Subject: [PATCH] proper initialization of the Addressdecoder Pins --- P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_if_p8000.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_if_p8000.c b/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_if_p8000.c index 6dfaa09..dd60903 100644 --- a/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_if_p8000.c +++ b/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_if_p8000.c @@ -26,7 +26,7 @@ */ /* - * $Id: wdc_if_p8000.c,v 1.7 2012/06/10 21:03:23 olivleh1 Exp $ + * $Id: wdc_if_p8000.c,v 1.8 2012/06/10 21:11:03 olivleh1 Exp $ */ #include "config.h" @@ -48,8 +48,12 @@ void wdc_init_ports() configure_pin_wdardy(); configure_pin_tr(); configure_pin_reset(); - PORTD |= ( ( 1 << PIND5 ) ); - + DDRD |= ( ( 1 << PIND5 ) ); + DDRD |= ( ( 1 << PIND6 ) ); + DDRD |= ( ( 1 << PIND7 ) ); + PORTD &= ~ ( ( 1 << PIND5 ) ); + PORTD &= ~ ( ( 1 << PIND6 ) ); + PORTD &= ~ ( ( 1 << PIND7 ) ); configure_port_data_read(); }