#avr | Logs for 2016-03-26

Back
[01:09:50] <Casper> Evidlo: and PB5... used by jtag? or other onboard stuff that you may have enabled by error? or fried PB5? or code error or datasheet comprehension error? :D
[01:10:47] <Valen> jtag is the debil!
[01:11:01] <Valen> at least when you are wondering why one damn pin isn't working
[01:11:23] <Casper> yeah
[02:23:21] <Casper> is there a manchester avr lib out there? for encoding and decoding?
[02:23:45] <Casper> that do not use timer :D
[02:34:27] <Valen> manchester encoding should in theory be seperate from actually spitting it out
[02:34:31] <Valen> so I presume so ;->
[02:37:22] <Casper> my issue is: high speed serial, with no crystal :D
[02:38:22] <Casper> 56k is what I aim..
[02:38:31] <Casper> maybe I should just make my own protocol...
[03:01:00] <Valen> cheaper to add a crystal or use a clocked communication ;-P
[03:01:19] <Valen> manchester won't save you from clock skew without lots of effort on the recieving side
[03:01:57] <Casper> I think I'll have to rethink my stuff
[03:02:49] <Casper> maybe I could just preprogram the pattern... and just use a clock...
[03:03:21] <Casper> ... I really have miscalculated my stuff :D
[03:09:36] <lorenzo> should I put some delay after ADC initialization?
[03:10:08] <lorenzo> I've noticed that if I don't have e.g. 500uS of delay after this code ( https://gist.github.com/lcafaro/50e4878b82ce7c34209f )
[03:10:12] <lorenzo> the first reading is always bad (0)
[03:10:28] <Casper> datasheet say to discard first conversion
[03:11:30] <lorenzo> ok, so since it's free running
[03:11:33] <lorenzo> I just wait for a few uS
[03:11:40] <lorenzo> enough for it to perform a few conversions
[03:13:23] <Casper> yeah that's what I'll do! simply send a clock instead
[03:13:38] <Casper> I think...
[07:17:01] <apo_> lorenzo: Microsiemens?
[07:18:38] <lorenzo> apo_: microsiemens?
[07:19:07] <lorenzo> better than microsievert I guess :o
[07:22:36] <apo_> µS is microsiemens
[07:22:56] <lorenzo> yeah. I never rembember the SI unit for second (s or S)
[07:23:02] <LeoNerd> Sieverts are Sv
[07:23:42] <RikusW> 1/Ohm = Siemens iirc
[07:24:14] <RikusW> 1uS = 1MOhm
[07:57:41] <WormFood> [02:28:22] <julius> WormFood, hantek 6022be - 20mhz, 48ms, usb <-- do you have personal experience with this unit? I was checking it out, and it's pretty cheap. Under $50 usd. Doesn't look great (8-bit vertical resolution), but looks acceptable.
[07:58:42] <lorenzo> WormFood: it's a fine unit
[07:58:51] <lorenzo> https://sigrok.org/wiki/Hantek_6022BE
[07:59:12] <lorenzo> dso-2090 is okay too and cheaper
[08:01:04] <LeoNerd> 8bit vertical is fairly standard for a 'scope
[08:01:16] <lorenzo> yeah even for benchtop
[08:01:22] <LeoNerd> They tend to do scale+offset in analog to shift the interesting part of the signal into the range of the ADC
[08:01:50] <WormFood> I would also like it to be able to handle input voltages greater than 5 volts.
[08:02:06] <LeoNerd> You could put an analog frontend on it
[08:02:18] <lorenzo> just x10 on your probe :p
[08:35:10] <WormFood> I'm gonna try to pick one up on Tuesday (after my mom leaves). I found 2 places that have it withing walking distance of me
[10:59:36] <stephe> reading the 328p datasheet, it says: Alternatively, ADIF is cleared by writing a logical one to the flag.
[10:59:50] <stephe> So just ADCSRA |= _BV(ADIF) ?
[11:25:33] <twnqx> stephe: that's how i'd understand it
[11:27:01] <stephe> Why do you write a 1 to turn something off?
[11:27:09] <stephe> I assumed I'd have to clear the bit by writing 0
[11:29:16] <Lambda_Aurigae> https://drive.google.com/a/bethnray.com/folderview?id=0BxaP1wMEe_6adnZ0cVpNYnBrT2c&usp=sharing#
[11:29:24] <Lambda_Aurigae> one sawdust project completed.
[11:29:30] <Lambda_Aurigae> and it's not even arduino powered!
[11:30:22] <phinxy> Whats the difference between a 10-PU and a 20-PU ?
[11:30:27] <Lambda_Aurigae> speed
[11:30:41] <Lambda_Aurigae> 10MHz vs 20MHz
[11:30:45] <Lambda_Aurigae> top speed.
[11:31:24] <Lambda_Aurigae> stephe, as for writing a logical 1 to the flag to clear something,,,that's just how that particular flag is setup.
[11:34:00] <stephe> ok, just wondering
[11:52:51] <twnqx> i've seen chips where you write a 1 to one location to set a flag and a 1 to another location to clear it
[11:53:12] <twnqx> you're not directly writing the register, but just e.g. to S or R pin of an R/S Flipflop
[12:24:40] <stephe> twnqx: makes sense
[14:23:48] <cehteh> Lambda-Aurigae: we have a ##woodworking channel over there :D
[15:24:24] <cehteh> uhm input capture with timer overflows is pita :D
[15:31:16] <theBear> pfft, gay man-sex is a pita, but i imagine once you get used to it, it's not so bad, even kinda fun, like input capture with overflows :)
[15:34:17] <cehteh> input capture works now .. not fun .. the other thing i dont wana try nor do i think its fun for me either
[15:40:41] <theBear> heh, that's cool, i wasn't advocating it generally, and i figure those that are gonna be into that kinda thing don't need my approval or permission, and just cos you got yer capture going first time doesn't mean you used to it.... trust me, it gets easier... maybe more satisfying than fun as time goes on, but far from pita
[15:42:40] <cehteh> http://public.pipapo.org/cppm_parser.png no glitches :D
[15:54:56] <Casper> theBear: are you speaking with experience?
[15:55:23] <theBear> yeah !!
[15:55:32] <theBear> i done lots of time capture <grin>
[15:58:33] <cehteh> sounds more like dick capture
[15:59:22] <Casper> Did it made you sweat at time?
[16:00:16] <cehteh> mhm scheduler needs 21µs @8MHz ... dunnoi if thats good, but i have a number now :D
[16:00:26] <cehteh> (to schedule a function)
[16:02:35] <Casper> I need to do some test... and see if I can reliably transmit on a multi-drop bus on 100ft, at 56k or more
[16:05:28] <theBear> sure, you can do eet, i believe in you
[16:08:57] <theBear> and if yer halfway thru and you wanna give up, just remember that the alternative is man-sex, and i heard that "it" is "pretty hard" hehe
[16:09:16] * theBear might not be a comedian, but he sure makes himself laugh a lot
[16:10:11] <theBear> i wonder how long i was asleep in this chair before... i hope i didn't give myself a sniffly nose, cos it sure wasn't shirt-off weather when i woke upa little while ago
[16:10:38] <theBear> and i got a bit of that excited-nose almost-sneeze feeling
[16:10:45] <theBear> maybe i shoud just sneeze
[16:30:56] <theBear> aww, anderson69 cares about my welfare, that makes me feel nice inside
[19:46:18] <Casper> how much jitter can I expect from the tiny48 with it's pll?
[20:30:23] <cehteh> |----------------------------------| ← that much :D
[20:32:45] <cehteh> the RC Oscillator has already quite some jitter, the PLL adds its bits too
[20:34:59] <Casper> how much in us or % ?
[20:37:23] <Casper> I'll do some tests I guess...
[20:37:31] <Casper> bbl