SXB I/O port definition
KenM
Posts: 657
Is there a mistake in the declaration of RB & RC I/O ports in the SXB code example for digital dice?
Below is a code snippet copied from the the SXB·example for digital dice.
If I correctly interpret the schematic, all RB and RC port pins should be outputs, yet not all of the ports are configured the same, yes/no?
Is there a mistake in the declaration of I/O ports·or am I missing something?
Thanks.
Ken
Post Edited (KenM) : 6/18/2005 5:06:30 PM GMT
Below is a code snippet copied from the the SXB·example for digital dice.
If I correctly interpret the schematic, all RB and RC port pins should be outputs, yet not all of the ports are configured the same, yes/no?
Is there a mistake in the declaration of I/O ports·or am I missing something?
Thanks.
Ken
Start: TRIS_B = %10000000 ' make LED ports outputs TRIS_C = %10000000
Post Edited (KenM) : 6/18/2005 5:06:30 PM GMT
Comments
PBASIC uses a shadow register called DIRS to set the IO pin state; it is an inverted version of TRIS.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (Jon Williams (Parallax)) : 6/18/2005 5:25:07 PM GMT
I should have seen/realized that·ports RB.7 and RC.7 have nothing connected to them and are left at floating inputs.
The Stamp community is·going to suffer a little (ok, a lot) after·you move to LA and·"land that gig," become a movie star and won't have time for·Stamps......
Ken·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I work with the SX and programming, but I also enjoy playing guitar and singing (well trying to sing) in jam sessions.
It's like a complete opposite and get's my mind off of programming stuff.
That's what you need, if you think "programming" 24 hours a day it will start to get to you after awhile and you'll burn out quickly.
Now if I can just get my wife to believe that I have "A" life [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
"What's the difference between ignorance and apathy ?"
"I don't know, and I don't care."
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
·· Let's not forget the Tech Support guy who plays Drums, Keyboards and sings a little, and has done work ona· few albums, including one still in the works.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I wonder if there is a connection between "technical" people and music ???
Or is it just that many many people play instruments ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
"What's the difference between ignorance and apathy ?"
"I don't know, and I don't care."
·
I can't play a stitch.... that's why in the past I have played the part of the "electronic rodie" <- John, Jon, and Chris don't get any ideas
that's a lot of work for one dude to handle, especially when things don't go exactly right sometimes. - grin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I'm into sound also. I have a 16 track digital recorder, and PA system and all that jazz.
I figured since I can't sing that well I might be able to "do" sound for people that can.
I've recorded several demo CDs for some people.
But now with a 18 month old son, I barely get time to play at all.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
"What's the difference between ignorance and apathy ?"
"I don't know, and I don't care."
·
in my opinion, writing software, or designing a new electrinic circuit is very similar to composing or performing music - both is creative and artwork. Maybe this is the reason why many programmers are also musicians - at least I met many people like this in my live so far.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
The SX is a natural for all sorts of DSP and related projects. Yet only the bare basics have been published:
http://www.sxlist.com/techref/ubicom/lib/math/dsp/index_sx.htm
I'm very interested in that area as well. The last newsletter was about sine wave generation.
http://www.sxlist.com/techref/new/letter/index.htm and an upcomming edition will be about filters. Sometime in the future I hope to do one about speech synth.
Some ideas:
And here is a crazy thought: Would it be possible to decode low bitrate MP3 data directly in an SX? Without using an external MP3 decoder?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
James Newton, Host of SXList.com
james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
SX FAQ / Code / Tutorials / Documentation:
http://www.sxlist.com Pick faster!
yes, you are right, there are not very many music related SX designs around, except the MIDI applications Jon did.
As a metter of fact, my first SX applications were control panels for electronic organs. All of them communicate via an I²C bus using MIDI data. I have developed different types of panels, one with 64 push buttons and LEDs, another one with 16 drawbars (potentiometers), and one with pushbuttons, LEDs, and an incremental data wheel.
I remember an article in BYTE many many years ago where they pusblished code for the KIM-1 board (with 6502 processor) which made the board play songs in four voices with just a simple R-2R-ladder DAC connected to a port. This one was clocked at 1 MHz, so it should be easy to do something similar, and much more with an SX @ 50 MHz.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
Günther
http://www.sxlist.com/techref/ubicom/contest/52wavmmc.htm
regards peter
·