Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Atmega128 PortF problem or question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
earlwb

Bascom Member



Joined: 06 Sep 2004
Posts: 10
Location: Texas USA

PostPosted: Mon Sep 06, 2004 2:52 pm    Post subject: Atmega128 PortF problem or question Reply with quote

What do I ned to do to enable or set the Portf.4 5 6 and 7 I/O pins to toggle high and low?
I wrote up the below program and although pins 0 thru 3 toggle high and low, the 4 thru 7 pins don't. I am wondering what I did or didn't do.
I am using Bascom ver 1.11.7.4 at this time.
Thanks
'Bascom program:
$regfile = "m128def.dat"
$crystal = 14745600

Config Portf = Output
Portf = 0

Loop:
Portf = 0
Wait 1
Portf = 255
Wait 1
Goto Loop

End
'end program
Back to top
View user's profile
earlwb

Bascom Member



Joined: 06 Sep 2004
Posts: 10
Location: Texas USA

PostPosted: Mon Sep 06, 2004 6:38 pm    Post subject: I found the answer Reply with quote

Oops my mistake, I had forgotten that I needed to turn off the fuse setting for enabling the Jtag programming mode. Once I did disable the fuse setting, then the other four PortF I/O pins started working OK.
Thanks
Earl
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum