#avr | Logs for 2014-06-21

Back
[06:21:02] <Jartza> kylmää ja märkää vaan
[06:21:08] <Jartza> oopt
[06:21:11] <Jartza> channel-lottery
[07:32:34] <Jartza> how many cycles there is "penalty" when ISR happens?
[07:33:02] <Jartza> like, saving the state and jumping to ISR
[07:36:03] <Jartza> (not counting the prologue of ISR)
[07:41:01] <timemage> Jartza, check the datasheet for your model. there is a section on how the chip responds to external interrupts. for the tiny45, it's in a section called "Interrupt Response Time"
[07:42:30] <Jartza> ahh
[07:42:32] <Jartza> thx
[07:42:35] <Jartza> didn't see it there
[08:05:07] <Tom_itx> counting clock ticks is like watching grass grow
[08:36:53] <Jartza> :)
[08:36:55] <Jartza> yes
[09:01:31] <Jartza> ahh
[09:01:33] <Jartza> now I got it
[09:01:48] <Jartza> push & pop are two-cycle commands
[09:08:14] <rue_more> they have to pull two valies off the stack?
[09:09:26] <Jartza> ?
[09:09:42] <Jartza> no, I meant, each push takes 2 cycles, like pop too
[09:09:51] <rue_more> yea and I'm saying why
[09:10:06] <rue_more> but I'm still waking up :(
[13:47:07] <Jartza> is there any tutorial how to convert a lib made with avr-gcc to arduino?
[13:47:26] <Jartza> haven't done arduino code, except few simple examples, switched to avr-gcc straight away :)
[13:56:32] <PureSine> Hello, I use Atmel Studio 6.2(Same problem with 6.0 and 6.1) it is for sometime that I can't compile AVR8 programs under user mode it gives error process_begin: CreateProcess... failed.
[13:56:34] <PureSine> make (e=5): Access is denied.
[13:56:35] <PureSine> make: *** [analyser.o] Error 5
[13:56:52] <PureSine> Atmel studio works fine under Administrator
[13:57:47] <PureSine> I couldn't find anything useful in internet , I even unistalled and reinstalled the atmel studio but problem persists
[13:59:26] <PureSine> it used to be OK but problem started about a month age(I mean Atmel Studio worked fine under user mode for at least 6 months) I have no idea what has happened and caused that
[13:59:55] <PureSine> anyone has experienced this or possibly know any solution for that ?
[14:01:17] <PureSine> *age/-e/ago
[14:23:40] <Lambda_Aurigae> PureSine, sounds like a permission error...windows did some kind of update maybe?
[14:24:19] <PureSine> could be, I have no idea , have you experienced a similar problem ?
[14:24:31] <Lambda_Aurigae> Jartza, arduino uses avr-libc to compile its stuff so you should be able to include things into an arduino sketch I would think. why you would want to I have no clue.
[14:24:54] <Lambda_Aurigae> PureSine, yeah, with windows fucking things up...I don't use windows and haven't used it except at work when necessary for over 10 years.
[14:26:05] <PureSine> and linux probably has anything close to Visual Studio/Atmel Studio for AVR ?
[14:26:18] <Lambda_Aurigae> I just use a text editor and command line tools.
[14:26:27] <Lambda_Aurigae> no need for anything like visual studio or atmel studio.
[14:26:58] <PureSine> well it works for small projects not big ones
[14:28:07] <Lambda_Aurigae> my biggest project is about 5000 lines of code including a bitbanged vga output, usb storage, sd card storage, a full screen editor, and an ethernet interface that runs across 4 different processors from 3 different manufacturers.
[14:28:43] <Lambda_Aurigae> using avr, pic, and 8052 processors all in one system.
[14:29:05] <PureSine> doing such project with a text editor is really difficult
[14:29:14] <Lambda_Aurigae> no it isn't
[14:29:24] <Lambda_Aurigae> unix and linux were written without any IDE.
[14:29:36] <Lambda_Aurigae> and they are much larger than anything you would do on an avr.
[14:30:01] <Lambda_Aurigae> the entire vic20, c64, and c128 operating systems were written in assembly without any IDE.
[14:30:33] <specing> small print: there weren't any IDEs back then
[14:30:37] <Lambda_Aurigae> you might be used to using an ide to keep things in order and do all the hard work for you.
[14:30:52] <Lambda_Aurigae> that doesn't mean it's harder to do without an IDE..just that it might be harder for you to do it.
[14:32:00] <PureSine> I didn't say it is impossible but as a programer with 15+ years experience with ARM, AVR and 51 in my opinion it will be really difficult
[14:32:26] <Lambda_Aurigae> there are many here who don't use IDEs for programming.
[14:32:35] <PureSine> sure
[14:33:23] <Lambda_Aurigae> I started programming around 1984 or so.
[14:34:15] <PureSine> you are definitely more senior than me at least in experience ;)
[14:34:46] <Lambda_Aurigae> these days I use the kate text editor which allows for multiple documents open.
[14:35:02] <Lambda_Aurigae> but I still use vi just as much as I do a GUI interface.
[15:10:35] <Jartza> I mostly use sublime text
[15:10:49] <Jartza> and I started programming around -82 :)
[15:16:09] <Jartza> Lambda_Aurigae: well, friend of mine wants to use a lib I made, and he's using arduino
[15:16:41] <Jartza> but it seems it's quite simple
[15:16:54] <Jartza> just few includes and some "external "C"" -lines
[15:17:15] <Jartza> I didn't like arduino, because it made so bloated code
[15:32:42] <Tom_itx> saleae software has usb protocol now
[15:32:50] <Tom_itx> jtag...
[15:32:59] <Tom_itx> LIN whatever that is..
[15:36:01] <Tachyon`> having problems with two i2c masters (328, 1284) and data corruption that occurs when sending to i2c display if data is coming in at same time from other chip, I thought i2c was supposed to have collision detection and retransmission built in? I assume I've made some basic error but can't see waht it is
[15:36:49] <Tachyon`> (making one a master and one a slave doesn't help either and would introduce other problems)
[15:45:43] <Jartza> Tom_itx: eagerly waiting for my saleae to arrive... estimate is on wednesday
[16:50:00] <Fleck> I2C and SPI works ok with internal oscilator?
[16:50:23] <Fleck> 8Mhz and atmega8
[17:12:36] <Tom_itx> Jartza, i was just looking over the new beta
[17:14:05] <Jartza> oh, I did use some release
[17:14:27] <Tom_itx> 1.1.18 iirc
[17:30:05] <RikusW> Tom_itx: LIN (Local Interconnect Network) - single master to slaves
[17:30:25] <RikusW> over 1 wire
[17:30:31] <RikusW> (not 1wire)
[17:30:49] <RikusW> see AVR308: Software LIN Slave
[17:48:27] <ColdKeyboard> If I want to generate a tone with PWM (using 50% duty cycle). Is ti better to use PWM or CCP?
[18:07:32] <ColdKeyboard> I did it with CCP generating interrupt on compare match...
[18:07:46] <ColdKeyboard> Now I have to make a lookup table for notes :)
[18:34:34] <Jartza> and just for the heck of it, I made 32kbps versio of the modem, but not auto-adapting :)
[18:34:52] <Jartza> just to try the limits of the circuit
[18:37:09] <aandrew> Jartza: I'm really curious to see your code for the modem, how did you approach the problem?
[18:46:55] <Jartza> like apple ii casette drive ;)
[18:47:00] <Jartza> I'll release the code, eventually
[18:47:18] <Jartza> I need to write some documentation, and take a lot of scoping images etc ;)
[18:47:28] <Jartza> so "when it's done", it'll be public
[18:47:40] <Jartza> I'm actually hoping, quite soon now
[18:54:24] <ColdKeyboard> Can someone help me please... I'm trying to do 125000/Freq. Result is uint_16_t, and Freq is in rage of 20-20000
[18:54:43] <ColdKeyboard> However, when I do the division and place it into a 16bit variable, I get an incorrect value...