#avr | Logs for 2014-08-07

Back
[01:27:31] <K`zan> Playing with a Teensy 2.0 and avr-gcc working at putting together a "button" mouse for a friend who has MS and no use of her hands.
[01:28:10] <K`zan> Got the basics working from something I found out on the net and an example from the Teensy site.
[01:29:15] <K`zan> Went to put together a heartbeat LED and it is being weird. I toggle the LED 6 times, but when it runs, it only toggles 4x.
[01:30:24] <K`zan> I remember somewhere, been a while since I have done anything with an AVR, that there is some problem with toggling a bit too quickly (delay is 2S). Can't find it now, any thoughts?
[01:47:50] <Thrashbarg> K`zan: what are you doing to toggle the bit? I'd be looking at what determines when six toggles are done
[01:56:26] <megal0maniac> K`zan: Show us the code :)
[02:11:39] <K`zan> Ah, sorry folks, resolved the issue, apologies for not getting back here sooner. Much appreciated though, thanks!
[02:13:12] <Thrashbarg> saved us the trouble then :P
[02:13:18] <Thrashbarg> lol
[09:42:28] <Duality> what is baud rate ?
[09:42:32] <Duality> on avr?
[09:42:42] <Duality> how many symbols per second or bits or bytes or what ?
[09:42:57] <Duality> i find it all confusing with this "baud rate" anyway
[09:45:21] <twnqx> baud rate = bits per second
[09:46:02] <Duality> ok
[09:48:10] <jacekowski> twnqx: nope
[09:48:16] <jacekowski> baud rate == symbols per second
[09:48:17] <twnqx> in this case it is
[09:48:20] <jacekowski> always
[09:48:24] <twnqx> so what
[09:48:33] <jacekowski> in case of serial 1 symbol == 1 bit
[09:48:38] <twnqx> in a digital serial port there is no difference between bits and symbols
[09:48:48] <jacekowski> twnqx: there is
[09:48:52] <twnqx> oh?
[09:48:54] <jacekowski> bytes*
[09:49:01] <jacekowski> typical 8n1 setting
[09:49:17] <jacekowski> means that there are 9 bits sent for every 8 bits of data
[09:49:29] <twnqx> so?
[09:49:35] <twnqx> the rate applies to total bits
[09:49:42] <twnqx> start/stop/parity is protocol
[09:49:52] <jacekowski> so it's 9600 symbols but 10800 bytes per second
[09:50:00] <twnqx> i disagree
[09:50:09] <jacekowski> you can disagree as much as you like
[09:50:20] <twnqx> if you manage 10800 BYTES over a 9600 baud line
[09:50:21] <jacekowski> it's not going to make it right though
[09:50:26] <twnqx> congrats to your compression algorithm
[09:50:30] <twnqx> or maybe 256aqm or so
[09:50:33] <twnqx> qam*
[09:50:34] <jacekowski> no
[09:50:44] <twnqx> a 9600 baud line
[09:50:51] <Thrashbarg> jacekowski: hum... why is it when I measure the baud rate generator on my old serial board it measures 9600Hz
[09:50:52] <twnqx> has 9600 bits per second total
[09:51:13] <jacekowski> no
[09:51:15] <twnqx> with is ca. 1066 bytes/second
[09:51:18] <jacekowski> http://en.wikipedia.org/wiki/Baud
[09:51:19] <twnqx> not 10800
[09:51:42] <twnqx> interesting, so you are right, and all the world of computers since the 80s is wrong
[09:51:44] <jacekowski> regardless, badu == symbol
[09:51:50] <jacekowski> baud*
[09:51:58] <twnqx> including modem manufacturers, etc
[09:52:02] <twnqx> ah well.
[09:52:04] <jacekowski> and how many bytes/bits to symbol is a different thing
[09:52:15] <Thrashbarg> yes, baud = symbol, 9600 baud is not 10800 *bytes*
[09:52:25] <twnqx> it's barelly 1066 bytes
[09:52:31] <twnqx> on rs232.
[09:52:34] <twnqx> with 8n1.
[09:52:41] <jacekowski> yeah
[09:52:53] <Thrashbarg> I'd prefer to say BPS rather than Baud to avoid confusion and arguments like this
[09:53:02] <Duality> *bytes*
[09:53:05] <Duality> jeej it works
[09:53:07] <twnqx> <jacekowski> so it's 9600 symbols but 10800 bytes per second <- so what where you talking about while we all were talking about rs232
[09:53:31] <twnqx> with 1 symbol more than 1 byte
[09:53:35] <jacekowski> i'm not sure how i've done that
[09:53:50] <jacekowski> i was supposed to divide by 9
[09:54:04] <twnqx> which would make you end up ca. 1066
[09:54:05] <Thrashbarg> now we're starting to make more sense
[09:54:13] <jacekowski> but 1 symbol being more than 1 byte is possible as well
[09:54:20] <twnqx> sure, qith aqm > 256
[09:54:22] <twnqx> with*
[09:54:25] <Thrashbarg> yep
[09:54:28] <twnqx> sure, with qam > 256
[09:54:31] <Thrashbarg> hence why I prefer BPS...
[09:54:32] <twnqx> sigh.
[09:56:45] <twnqx> anyway, to sum it up for Duality: with rs232, 1baud=1bps, but don't forget the protocol overhead (start/stop/parity bits) when calculating the net bandwidth in bytes/second
[09:57:00] <Thrashbarg> yay
[18:05:48] <Jartza> uugh
[18:06:01] <Jartza> feeling a little beaten, but luckily the antibiotics start to bite
[18:06:42] <Jartza> also just woke up after sleeping for 8 hours, stupid time to wake up
[18:06:56] <Jartza> (it's 1:48 AM
[18:07:03] <Jartza> :P
[18:07:23] <Jartza> maybe I'll finish the oled-lcd-lib now as I don't feel sleepy and the fever is gone :D
[18:25:38] <Tom_itx> some of those are a bit touchy to work with
[19:15:03] <N1njaneer> So quiet today!
[19:18:26] <Lambda_Aurigae> yup.
[19:18:32] <Lambda_Aurigae> in my defense, I had to work.