Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20695

Share your working BASCOM-AVR code here : Using the 23S17 as portexpander : NEWTOPIC

$
0
0
Hallo allemaal. Voor een woordklokje waarvan ik het idee van Ben's Hobbycorner heb geleend en de software trouwens ook grotendeels, heb ik zelf een ontwerp gemaakt op basis van een ATMega1284P. Met te weinig IO's voor een grafisch display inderdaad. Na enige zoeken kwam ik bij de 23S17 als portexpander terecht. Aansturen met SPI en je hebt 16 pinnetjes om als input of output te gebruiken. Allerlei leuke trucen zijn in dat ding aanwezig. Printje ontworpen en na 3 weken kon ik solderen ... En hoera, slechts twee dommigheden op de print die gelukkig makkelijk te fixen waren. In alle blijdschap Ben ook twee exemplaren gestuurd. En die zei: Van die portexpander moet je een tutorial maken. En dat heb ik dan ook gedaan. In het bijgaande PDF'je twee voorbeelden van het gebruik om te schrijven (kipsimpel) en te lezen (zo, dat duurde even voordat ik de truc doorhad). Het e.e.a. is gedocumenteerd en in het Engels om ook de gasten hier wegwijs te maken. Ben: Superbedankt voor alle hulp, de software, het idee ... Alles! Hi all, I lended the idea of a "word clock" from Bens Hobbycorner. Made a different schema, designed a PCB for it and three weeks later it came with the mailman. I used a portexpander using the SPI port, the 23S17. Using it in the "word clock" was quite simple, only used as output ports. Ben advised me to make a tutorial, so I did. In the enclosed PDF two examples, one for using as output pins, and one for reading pins. All well described (I hope). Hopefully this is usefull for anybody, if not, it kept me home for two days experimenting and writing these examples. :P Thanks all for contributing to this forum, this is truly helpfull!!!! Kees

Viewing all articles
Browse latest Browse all 20695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>