#avr | Logs for 2014-07-09

Back
[04:43:49] <abcminiuser> Mein souffle!
[07:41:29] <Broot> good morning avr
[08:10:28] <inflex> Yaaaay, my new project works... well, of course it should
[08:10:33] <inflex> hi abcminiuser
[08:10:41] * inflex hides away as it's a v-usb project
[08:46:19] <Roklobsta> inflex: what's this new thing?
[08:46:59] <inflex> http://ctpc.biz/ur1.jpg
[08:47:15] <inflex> it's just a 4 port MOSFET lowside power controller device
[08:47:35] <inflex> nothing unusual at all - stock standard PowerSwitch project
[16:15:01] <MarkB2> <moan> ...help? I've got one of those little xmega256a3bu boards on the table, Atmel Studio 6.2 loaded in... and I'm losing my marbles trying to figure out which chunk of what has "*_init()" functions that need to be called.
[16:15:30] <MarkB2> I would like very much to put a string on the LCD display...
[16:17:04] <MarkB2> I did manage to get the backlight turned on... and used ASF Wizard to load the GFX routines.
[16:17:39] <MarkB2> But which SPI driver is needed? And I'm embarrassed to say I can't find the function to initialize the SPI interface.
[16:38:48] <MarkB2> In the examples shipped with Atmel Studio 6.2, there is "example_sysfont1". I create a new example project, open the ASF Wizard, and on the right half pane is a list of five "modules".
[16:40:52] <MarkB2> Modules on the left aren't used in the current project, modules on the right are. There is a call-out in the Solution Explorer for an xmega "usart" .. but there are TWO "usart" modules on the left. Which USART driver are they using?
[17:12:22] <Tom_itx> MarkB2, abcminiuser could probably help when he's on
[17:14:01] <Casper> ... TI support is shit
[17:14:46] <Casper> my ticket got rejected because I have not filled the compagny name nor the product type, both set to "none"
[17:15:01] <Casper> due to "US export laws"
[17:20:14] <w|zzy> In other words "this guy isn't going to be buying bulk"
[18:05:46] <Tachyon`> where does the avr (328/1284) keep its stack?
[18:11:06] <specing> ram end
[18:15:18] <Lambda_Aurigae> Tachyon`, as specing said, ram end or at the top end of ram..stack starts at top of memory and works downwards.
[18:15:30] <Tachyon`> ahh, thanks
[18:15:40] <Lambda_Aurigae> or, wherever you set it to.
[18:15:43] <Lambda_Aurigae> but that's the default.
[18:17:19] <Lambda_Aurigae> at least, that's the default that is setup when using avr-gcc.
[18:17:47] <Tom_itx> doesn't the data sheet show that stuff at the front?
[18:17:54] <Lambda_Aurigae> page 11
[18:18:02] <Lambda_Aurigae> for the atmega1284p anyhow.
[18:18:24] <Lambda_Aurigae> well, page 14 is the actual stack pointer info start page.
[18:19:55] <Lambda_Aurigae> initial stack pointer is set by hardware reset to top of ram according to the manual, but I think it is good practice to set it yourself just in case.
[18:22:04] <Lambda_Aurigae> you can move the stack pointer to wherever you want in sram, however, allowing you to implement multiple applications with their own stack and switch between them with a timer interrupt.
[21:41:07] <kosc> Hello
[21:41:23] <kosc> Can anybody help me with simple avr assembler programm?
[21:41:47] <kosc> http://bpaste.net/show/449998/
[21:42:20] <Tom_itx> depends how long you're willing to hang out here
[21:42:22] <kosc> There is scheme: http://storage5.static.itmages.ru/i/14/0710/h_1404959160_2882455_71280971d9.png
[21:43:47] <kosc> I want diod lights when I press button.
[21:43:59] <kosc> But this isn't happens.
[21:45:24] <Tom_itx> seems i need to reboot
[21:54:38] <kosc> Hm, that's better.
[21:54:53] <kosc> Tom_itx: so long reboot
[21:56:20] <Tom_itx> zlog
[21:58:37] <Tom_itx> well damn he left
[21:58:48] <Tom_itx> he's comparing the wrong bit for the button
[21:59:08] <Tom_itx> err maybe not...