Jump to content
43oh

Writing Ports directly


Recommended Posts

Hello everybody. This is my first post.

 

I am using Energia to control a Stellaris Launchpad. Quite nice so far...(although I miss the debug capabilities)

Anyway, so far so good but I noticed that when you set on or off a digital pin you have to use digitalWrite and that works for one pin only. 

 

What happens if I want to write an entire port , something like

portA=0x80;

Is this possible in Energia??

 

Thanks a lot

 

Link to post
Share on other sites

Thank you . After searching I found 

 

http://forum.43oh.com/topic/7136-solved-writing-and-reading-the-values-of-an-8-bit-port-with-energia/   

 

and also 

 

https://engineering.purdue.edu/ece477/Archive/2009/Fall/F09-Grp07/nb/Shaun/10_29_notebook/Blinky.pdf  

 

which helped me to do it. 

 

So now I am setting values for whole ports  :D

 

My program does not work yet though :huh:  :wacko:

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...