#avr Logs

Sep 03 2017

#avr Calendar

12:31 AM day__ is now known as daey
01:05 AM JanC is now known as Guest3516
01:05 AM JanC_ is now known as JanC
02:18 AM danst: Unfortunately all my attempts to send data over serial from attiny2313 to arduino uno has failed
02:18 AM danst: so I've decided to buy attiny with 4k flash so SoftwareSerial would fit in
02:19 AM danst: I need it only to send commands to DFPlayer, 5 control buttons and led pin
02:19 AM danst: which one would be better ATtiny441-SSU or ATtiny44A-SSU? Thank you
02:22 AM Casper: my software serial took what... 300 bytes?
02:29 AM danst: you just include SoftwareSerial.h from attinycore and get 300 bytes?
02:35 AM danst: can you share the code?
02:51 AM rue_bed: hu?
02:51 AM rue_bed: if I can do serial with a tiny13...
03:03 AM danst: Sketch uses 2,054 bytes (100.3%) of program storage space. Maximum is 2,048 bytes.
03:03 AM danst: Global variables use 155 bytes (121.1%) of dynamic memory, leaving -27 bytes for local variables. Maximum is 128 bytes.
03:04 AM danst: SoftwareSerial depends on whole tinycore
03:05 AM danst: I've tried http://nerdralph.blogspot.ca/2013/12/writing-avr-assembler-code-with-arduino.html
03:07 AM danst: and tried setting baud rate manually through registers
03:07 AM danst: but everything gives junk on the output
03:08 AM danst: SoftwareSerial is my last chance
03:08 AM danst: but it's huge
03:30 AM antto: danst you need uart?
03:31 AM antto: do you have a hardware uart that is available on your chip?
04:16 AM woddy1 is now known as woddy
07:21 AM remkooo1 is now known as remkooo
08:12 AM danst: antto: how to access it? I just bought chip and made a breakout board
08:16 AM dgriffi: sabor: a year ago you helped me with my attempt to make an AVR emit bluebox tones. Do you remember that?
08:18 AM polprog: HW uart is
08:19 AM polprog: quite simple... you just a couple values to some registers, the baudrate, unless it's something exotic, has UBRR values listed in the datasheets
08:19 AM dgriffi: I'm having a case of "what the hell was I doing a year ago?".
08:19 AM polprog: you just write*
08:20 AM polprog: danst: see the pinout, the pins are called RxD and TxD, also see what just wrote ^^
08:40 AM danst: polprog: I've done this, but got garbage on output, didn't matter which baud rate I was setting I wasn't able to get exact symbol count I was sending
08:40 AM danst: I went through all ubrr values
08:40 AM danst: and they all were like ???????
08:40 AM danst: a russian man was walking down the street, then he farted and shouted ??? ???????
08:44 AM polprog: danst: what does your uart setup look like? did you set the baudrate of your converter?
08:45 AM danst: I'm using TinyISP on Arduino UNO to program attiny2313a, after programming I connect attiny TX to arduino RX and view serial monitor with attiny baud rate
08:46 AM polprog: so it's attiny <-> arduino <-> computer ?
08:46 AM danst: yes!
08:46 AM polprog: well that's wrong
08:47 AM polprog: you cant use the arduino both to communicate with the attiny and use it as a serial monitor
08:47 AM danst: I've read about Serial Relay thing
08:52 AM danst: it is using SoftwareSerial, so I've changed RX pin in code to arduino A0
08:52 AM danst: and connected attiny TX pin to virtual RX
08:52 AM danst: but nothing happened
08:52 AM polprog: i think you are overcomplicating that
08:52 AM polprog: do you have that usb-uart converter?
08:52 AM danst: no
08:52 AM danst: :(
08:53 AM danst: but I have hc-05 in zs-040
08:53 AM danst: it's a bluetooth module
08:53 AM polprog: hmm.. well, let's assume that all the arduino part works
08:53 AM danst: can it be any useful?
08:53 AM polprog: maybe it can, if you have bluetooth in your computer
08:54 AM polprog: what program do you use on the PC to see the output of serial?
08:56 AM danst: Stino serial monitor or arduino IDE serial monitor
08:56 AM polprog: what baudrate do you have set in that software serial
08:57 AM remkooo1 is now known as remkooo
08:57 AM polprog: i think you have different baudrates (speeds) set in arduino and in the monitor
08:57 AM polprog: check that, and if it doesnt work try a real terminal program like putty or teraterm
08:59 AM danst: honestly I've tried different combinations
08:59 AM danst: softwareserial part from tinyisp doesn't work
08:59 AM danst: it's not forwarding garbage
09:00 AM danst: I launch it, send "!" to serial, is says that monitor is active
09:00 AM danst: then silence
09:00 AM danst: I guess it doesn't work because I'm not getting something
09:00 AM danst: but what exactly is a complicated question
09:01 AM polprog: yeah, if it was worng speed you'd most probably be getting garbage
09:01 AM polprog: tinyisp doesnt have uart at all
09:01 AM danst: so I need a usb to uart converter to read directly from attiny?
09:01 AM polprog: you can try to use the onboard converter in the uno
09:03 AM polprog: im not sure if it would work though
09:04 AM polprog: actually it wont...uart needs to be crossed, meaning RX goes to TX
09:04 AM polprog: but maybe you could use the onboard converter to tap in between the tiny and the uno
09:05 AM danst: isn't that what I was doing by connecting attiny tx to uno rx
09:05 AM polprog: of you install a terminal on your PC and set the speed
09:05 AM polprog: that way you connect uno to attiny
09:06 AM polprog: so get a terminal program and try it
09:08 AM Lambda_Aurigae: he needs to narrow down where the problem is...is it in the tiny or the arduino or the pc...he has 3 things there that could be set wrong.
09:08 AM polprog: yeah
09:08 AM Lambda_Aurigae: also, note, the tiny is doing uart work without a crystal.
09:08 AM Lambda_Aurigae: internal RC oscillator
09:09 AM polprog: that can be a problem too
09:09 AM Lambda_Aurigae: which, while it can work, needs to be tuned.
09:10 AM enh: useful link: https://arduino.stackexchange.com/questions/763/im-using-too-much-ram-how-can-this-be-measured
09:10 AM enh: hi
09:11 AM polprog: hi
09:14 AM Lambda_Aurigae: enh, you don't have anything that is reiterative or recursive do you?
09:14 AM enh: nope
09:14 AM Lambda_Aurigae: or instantiating classes and that kinda of thing?
09:15 AM enh: I instantiate classes. Once.
09:15 AM enh: I only use classes to organize the code.
09:15 AM Lambda_Aurigae: or instantiating anything else?
09:16 AM Lambda_Aurigae: like, creating multiple copies of anything?
09:16 AM enh: nope
09:16 AM enh: i checked that
09:16 AM enh: i'm almost sure it is a stack collision
09:17 AM enh: but yesterday i got a third new error in the protocol. It seems the problem is getting worse.
09:17 AM enh: i really hope it is not hw related
09:19 AM Lambda_Aurigae: and you don't use "new" for anything that might be destroyed later?
09:19 AM Lambda_Aurigae: or, for that matter, for anything.
09:20 AM enh: i use new to create two instances. One for TWI and the other for MSPIM, because i have four sensors and they share those classes.
09:20 AM enh: but they are not destroyed
09:22 AM Lambda_Aurigae: I would generate assembly listing in my compile and dig through that to see what's happening.
09:22 AM enh: i objdumped the code but i'm not competent to interpret it enough
09:22 AM enh: this is a runtime error.
09:23 AM polprog: did you compile with debug symbols
09:23 AM enh: yep
09:23 AM polprog: well, i guess you need more runtime debug then
09:23 AM polprog: more leds, serial prints, etc
09:23 AM enh: i will go for avr studio
09:23 AM enh: on chip debugging
09:24 AM enh: the code is not hanging
09:24 AM enh: everything runs. but the protocol is messed up
09:24 AM Lambda_Aurigae: you will need something that does debugwire interface.
09:24 AM enh: i have a spi protocol to communicate between two modules
09:24 AM enh: i have an atmel ice
09:25 AM enh: i just do not have a windows machine
09:25 AM enh: the spi protocol is simple. EAsy to follow with a signal analyzer
09:25 AM polprog: i think youve tried avarice on linux and you didnt like it
09:26 AM enh: and it is getting corrupted. signaling code like ack and size are gettiing corrupted and they are very near one another
09:26 AM enh: i tried avarice before. could not get it to work
09:27 AM enh: i'm reviewing the datasheet now
09:27 AM polprog: that's not good news since i wanted to try it :D
09:27 AM enh: you should. maybe you can make it work. I'm on a mac. I do linux like stuff here on terminals.
09:28 AM enh: most of what i do is command line
09:28 AM polprog: mac is still unix, you know
09:28 AM enh: i do
09:29 AM enh: that is why i accepted changing from linux to it
09:29 AM dgriffi2: apple messed around with the directory structure too much
09:30 AM enh: agree
09:30 AM polprog: i have a simple (but blocking) uart printf implementation, if it could be of help to you enh
09:30 AM enh: thanks, polprog. I got one too
09:31 AM enh: but the communications module is working fine. it connects to outside world. The problem is with the sensor module, which only coms ou by SPI
09:32 AM enh: out
09:32 AM enh: hard problem to debug
09:32 AM enh: if at least code hanged
09:33 AM enh: I'll try inserting asserts to hang everything. But that changes the code
09:34 AM enh: and even few changes are changing the problem symptoms.
09:37 AM enh: on atmega328p, the datasheet says 0x011 corresponds to spi serial transfer complete. How should i trigger it?
09:37 AM polprog: i would put some debugs (you can send two bytes without any blocking) via uart on the sensor module
09:37 AM enh: good idea. the two bytes could be freeram result
09:38 AM polprog: freeram?
09:38 AM enh: google it. a kind of standard way to measure distance betwee stack and heap
09:39 AM enh: gotta put kid to sleep. be back soon
09:42 AM polprog: according to some C boot camp if you dont define a variable usign malloc() it goes to stack... so 'int foo = 10' would go to stack, but 'int foo = malloc(sizeof(int); foo = 10' goes to heap
09:42 AM polprog: that sounds fishy to me
09:43 AM polprog: enh: http://www.nongnu.org/avr-libc/user-manual/malloc.html
09:44 AM polprog: enh: see __malloc_margin
09:53 AM tpw_rules: polprog: well you still need some stack to allocate the pointer to foo. but foo is actually stored on the heap. if it's just an int type, you're probably wasting space cause of malloc's bookkeeping overhead
09:54 AM tpw_rules: enh: did you try compiling in my memory fill code?
09:54 AM polprog: so youre telling me that if i need to access a variable that was declared 10 declarations "ago", i need to pop all the values of the stack?
09:54 AM enh: tried, but yesterday i could not find how to dump memory while the ic was working
09:56 AM enh: polprog: when you get into a function you increase stack size. When you get out of it the stack decreases
09:56 AM tpw_rules: just like for (char* p = &(0x100); p < 0x100 + 2048; p++) send_char(p)
09:56 AM tpw_rules: or something. might not be valid c
09:57 AM polprog: so the pointers are stored onto the stack only when in enter a function?
09:58 AM enh: they probably have a region reserved for them. I do not know enough to answer this question
09:59 AM polprog: ill google something, it's interesting
09:59 AM tpw_rules: hm?
09:59 AM tpw_rules: pointers are regular stack variables
09:59 AM polprog: that's the article i said sounds fishy: http://gribblelab.org/CBootCamp/7_Memory_Stack_vs_Heap.html
10:00 AM tpw_rules: well yes, the heap memory does stay on the heap
10:00 AM polprog: from what i know, if you need to access a 3rd value from top of the stack, you need to pop twice
10:00 AM tpw_rules: but you must have a pointer on the stack in order to access a variable in the heap
10:00 AM tpw_rules: that's not true either
10:01 AM tpw_rules: modern cpus can say "pull something n slots down on the stack"
10:01 AM polprog: ah
10:01 AM tpw_rules: and the compiler keeps track of where n is
10:01 AM polprog: that's the key then
10:01 AM tpw_rules: the distinction matters a lot more when you're like char buf[100] vs char* buf = malloc(100);
10:01 AM tpw_rules: in the first case you're storing 100 bytes on the stack, in the second case it's 2 (on AVR) and perhaps 116 or so on the heap
10:02 AM polprog: ok
10:02 AM tpw_rules: on AVR, you pretty much want to never use the heap
10:02 AM tpw_rules: it's slow and prone to fragmentation and just a bad idea
10:02 AM tpw_rules: (IMO)
10:02 AM polprog: but what would the AVR do if i wanted to access something which is down in the stack
10:02 AM tpw_rules: it would use an instruction that could do it/
10:02 AM tpw_rules: ?
10:04 AM polprog: ive been looking through many assembler generated from C
10:08 AM polprog: and it mostly used STD (store indirect from reg to data space) instead of push and pop. does it mean that it just puts values in the middle of the stack?
10:09 AM polprog: what im saying is i dont often see push and pop "in the wild"
10:12 AM polprog: but, it does load some high values to the Y register at the very beginning (before main() is called) and then it loads them to the stack pointer
10:12 AM polprog: and then it uses a lot of characteristical std series where the adress is the Y register being increased by +1, +2, +3 etc
10:13 AM polprog: so it looks like it's not using the stack the traditional way (push/pop) :P
10:17 AM tpw_rules: yeah, that's pretty uncommon
10:18 AM tpw_rules: it reserves space for variables at the beginning by just subtracting how many you use at the start of the function
10:18 AM tpw_rules: then it access them with sp + n and STD
10:19 AM tpw_rules: it might do push and pop for calculations, but the avr has enough registers it probably won't
10:19 AM polprog: and that would make sense since there is a loop that fills the high memory region with zeroes
10:19 AM polprog: TIL
10:19 AM polprog: clever hack
10:19 AM tpw_rules: that's mostly to save people from themselves
10:20 AM tpw_rules: all globals are initialized to zero before main() runs
10:20 AM polprog: yeah
10:20 AM polprog: it's getting more and more interesting as im getting deeper into it
10:21 AM tpw_rules: https://gcc.gnu.org/wiki/avr-gcc this is what you want
10:21 AM tpw_rules: it outlines exactly how the compiler passes params, calls functions, allocates stack space, etc
10:21 AM polprog: thanks
03:12 PM HelloShitty: Hello guys
03:12 PM Lambda_Aurigae: always leaves out the girls.
03:12 PM HelloShitty: I think I have an answer to the question that was aired last time I was here
03:12 PM HelloShitty: and girlzzz
03:13 PM Lambda_Aurigae: ok.
03:13 PM Lambda_Aurigae: lots of questions all the time.
03:13 PM HelloShitty: yeah
03:13 PM HelloShitty: that is good
03:13 PM HelloShitty: it means people are dealing with avrs
03:14 PM HelloShitty: I'm not sure the guys that talked to me last time are here now or not
03:14 PM HelloShitty: and I'm also not sure if you can help me
03:14 PM Lambda_Aurigae: and I have no clue what the question was at the time.
03:14 PM HelloShitty: I don't know your level of knowledge
03:14 PM Lambda_Aurigae: well,
03:14 PM HelloShitty: so, that sais
03:14 PM HelloShitty: I'll just put here my questions
03:15 PM Lambda_Aurigae: electronics hobby and professional for over 30 years
03:15 PM HelloShitty: ahh ok then
03:15 PM Lambda_Aurigae: computers for over 30 years
03:15 PM Lambda_Aurigae: copiers and printers for 10 years
03:15 PM HelloShitty: ok ok... perfect to me
03:15 PM Lambda_Aurigae: professional networking of computers for almost 30 years.
03:15 PM HelloShitty: I'm just starting to learn a bit about avr chps
03:15 PM Lambda_Aurigae: microcontrollers for 17 years.
03:15 PM HelloShitty: that's my "passion"
03:15 PM HelloShitty: uC
03:15 PM Lambda_Aurigae: programming since the 80s.
03:16 PM HelloShitty: and also programming, despite the fact that my knowledge is very limited
03:16 PM Lambda_Aurigae: not a programming language or platform I can't learn given a little time.
03:16 PM HelloShitty: I'm just starting
03:16 PM Lambda_Aurigae: so, again, I have no clue what your question was the last time you were here.
03:16 PM HelloShitty: ok, but probably you can help me
03:17 PM HelloShitty: it's just I need to repeat the process but of course I'll do it... After all, it's my interest
03:17 PM HelloShitty: I'm using an AtMega328p to read some analog values that are coming from 2 OpAmps
03:17 PM HelloShitty: Or better, I'm trying to use...
03:17 PM HelloShitty: Because I still haven't managed to do it
03:18 PM HelloShitty: And last time when I was here asing for help
03:18 PM Lambda_Aurigae: so start with reading the ADC..make that code work first..forget the opamps and other stuff.
03:18 PM HelloShitty: I was trying to figure out which reference voltage to use to the ADC
03:18 PM Lambda_Aurigae: 150Kohm variable resistor...hooked to VCC and GND with the wiper hooked to the ADC pin.
03:19 PM HelloShitty: no no wait
03:19 PM HelloShitty: I'm not at that point
03:19 PM HelloShitty: I'm trying to program de ADC for my application
03:19 PM Lambda_Aurigae: the reference voltage you use depends on the voltage you need to read.
03:19 PM HelloShitty: so, that's where I want to get
03:19 PM HelloShitty: let me talk to the end
03:19 PM HelloShitty: :p
03:19 PM Lambda_Aurigae: you can read the ADC and make it work reliably?
03:19 PM HelloShitty: please wait
03:20 PM HelloShitty: let me just contextualize the whole thing
03:20 PM HelloShitty: last time I was here
03:20 PM HelloShitty: that was one of my questions
03:20 PM HelloShitty: what reference should I use
03:20 PM HelloShitty: the internal 1.1V or an external one
03:20 PM HelloShitty: that that was excatly what guys here told me
03:20 PM Lambda_Aurigae: very much depends on the signal you are feeding in.
03:20 PM HelloShitty: depends on the readings I'm going to do
03:21 PM HelloShitty: so I ended up to figure that out
03:21 PM HelloShitty: because last time I was here I didn't know
03:21 PM HelloShitty: Now I have at least an idea
03:22 PM HelloShitty: the voltages that are going to be fed into ADC pins of AtMega328p will be around 1V and 2V more or less
03:22 PM HelloShitty: So, if I understand, I can't use the internal one because it's not enough
03:22 PM Lambda_Aurigae: correct.
03:22 PM HelloShitty: I need to use an external one
03:22 PM Lambda_Aurigae: correct
03:23 PM HelloShitty: So, I have a 5V voltage supply which I use to feed my breadboard
03:23 PM Lambda_Aurigae: or shift the input downward somehow electronically.
03:23 PM HelloShitty: so, I think I'll use this one
03:23 PM Lambda_Aurigae: for ADC reference you need a very well smoothed and stable voltage.
03:23 PM HelloShitty: yes, I can get it
03:23 PM HelloShitty: I guess
03:23 PM HelloShitty: the voltage supply I have already have filtering and smoothing features
03:24 PM Lambda_Aurigae: capacitor between AREF and GND..as close to the avr as possible.
03:24 PM HelloShitty: so, I can get a pretty stable voltage here
03:24 PM Lambda_Aurigae: 10uH coil in line with AREF won't hurt either.
03:24 PM HelloShitty: hum ok
03:24 PM HelloShitty: but wait
03:24 PM Jartza: what AVR it is?
03:24 PM Lambda_Aurigae: you need to decouple that AREF from your VCC with those two things
03:24 PM HelloShitty: AtMega328p
03:24 PM Jartza: some AVRs also have internal 2.56V reference
03:25 PM Lambda_Aurigae: otherwise when you turn on LEDs or such you will get fluxuations.
03:25 PM HelloShitty: I won't be using leds
03:25 PM Lambda_Aurigae: Jartza, isn't that new core?
03:25 PM Jartza: atmega328p has internal 2.56V reference
03:25 PM HelloShitty: Jartza: hello
03:25 PM HelloShitty: remember me?
03:25 PM Lambda_Aurigae: kewl Jartza
03:25 PM HelloShitty: from anywhere?
03:25 PM HelloShitty: :p
03:25 PM HelloShitty: I rmember something you showed me a long time ago, maybe 2 years or more ago
03:25 PM Lambda_Aurigae: unfortunately, I don't use the atmega328p so have to keep referring to the datasheet because people with questions won't do so.
03:26 PM HelloShitty: Lambda_Aurigae: I have the datasheet open
03:26 PM HelloShitty: but as I'm a beginner, there is a lot of stuff in datasheets I don't understand
03:26 PM HelloShitty: anyway
03:26 PM HelloShitty: you said to hook up a cap from AREF to GND, right?
03:27 PM Jartza: oh wait... it might have been 328pa
03:27 PM Lambda_Aurigae: 328pb maybe?
03:27 PM Lambda_Aurigae: the new one.
03:28 PM Lambda_Aurigae: HelloShitty, look at page 313 of the datasheet
03:28 PM Jartza: ahh yeah pb
03:28 PM Jartza: the new part
03:28 PM Lambda_Aurigae: that same thing feeding AVCC should be used to feed AREF if you are feeding AREF off the main VCC
03:29 PM HelloShitty: Lambda_Aurigae: can I have the link you're using?
03:29 PM Lambda_Aurigae: if you are using an arduino board it probably doesn't have that on the AVCC either.
03:29 PM HelloShitty: I'm using this one:
03:29 PM HelloShitty: http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf
03:29 PM Lambda_Aurigae: http://www.atmel.com/Images/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Datasheet.pdf
03:29 PM Lambda_Aurigae: atmel datasheet
03:30 PM HelloShitty: hum, not the sae pages
03:30 PM Lambda_Aurigae: same page on yours.
03:31 PM Lambda_Aurigae: oh..
03:31 PM Lambda_Aurigae: duh..
03:31 PM Lambda_Aurigae: let me click on yours..
03:31 PM Lambda_Aurigae: hheeh
03:31 PM HelloShitty: no
03:31 PM HelloShitty: Well, yes and no
03:31 PM HelloShitty: lol
03:31 PM HelloShitty: or better no
03:31 PM HelloShitty: My page 313 is different
03:32 PM HelloShitty: anyway
03:32 PM Lambda_Aurigae: page 245
03:32 PM HelloShitty: That picture has VCC, AVCC and AREF
03:32 PM Jartza: anyway
03:32 PM HelloShitty: ok, brb, sorry
03:32 PM HelloShitty: dinner time
03:32 PM HelloShitty: wife is already yelling at me
03:32 PM HelloShitty: :p
03:32 PM Jartza: if your voltages are between 1..2V, you can also use voltage divider
03:32 PM Jartza: to get it down below 1.1V
03:33 PM Jartza: if you want to use internal reference
03:33 PM Jartza: but something to note about internal reference, it's not very accurate
03:33 PM Jartza: it's 1.1V +-10%
03:33 PM Jartza: so in reality it's 0.99 .. 1.21V :)
03:33 PM Jartza: somewhere in between
03:35 PM Jartza: lol
03:35 PM Jartza: it was attiny85 that has internal 2.56V reference
03:35 PM Jartza: d'oh
03:52 PM polprog: this guy is doing something wrong imo
03:53 PM polprog: we could get adc readings on the courses where some people had barely any idea how a resistor works 6 hours earlier
03:54 PM polprog: maybe a good "excercise" would be to make a rough adc setup, as simple as possible, with a pot betwen vcc and gnd with a wiper hooked up to a channel
03:54 PM polprog: literally as simple as possible
03:56 PM polprog: then make it more complex,add caps to aref, change the reference, use interrupts, put the mcu in noise reduction sleep
04:00 PM Emil: polprog: who is?
04:00 PM Emil: What's the context?
04:01 PM polprog: taking up a too ambitious project and failing it because theres too many things to be set, calcuated, adjusted at once
04:01 PM Emil: Who is?
04:01 PM Emil: HelloShitty: ?
04:02 PM polprog: is a great way to get frustrated
04:02 PM Emil: Absolutely true
04:02 PM Emil: It also doesn't help when you don't listen :D
04:03 PM polprog: yes, BonjourMerde
04:03 PM HelloShitty: I'm back
04:04 PM HelloShitty: ok, I have now the range of values that I need to read with the ADC
04:04 PM HelloShitty: It will be around 1V and 2V, nore or less
04:04 PM polprog: i remember i tried to make a 555 work when i was 7, and i had absolutely no idea, so i bught "electronics for dummies". it didnt work and i was so depressed tgat for the next two years i took up java
04:04 PM HelloShitty: and I was asking how should I connect AVCC and AREF
04:04 PM polprog: and made a nice 2d game afterwards
04:05 PM polprog: to aref you should only connect a capacitor for decouling
04:06 PM polprog: decoupling*
04:06 PM HelloShitty: and Lambda_Aurigae told me to look to that schematic in page 313 or 245 depending on the link
04:06 PM Emil: polprog: :DDDDDDDDDDDDDDDDDDDDD
04:06 PM Emil: polprog: alll my lulz
04:06 PM HelloShitty: but that image on that page is different from what I have
04:07 PM polprog: just read the ADC chapter ti get a general idea about adc
04:07 PM HelloShitty: At this point, I need to know how to connect those 2 pins
04:07 PM HelloShitty: or better
04:07 PM HelloShitty: AVCC is hooked up to 5V
04:07 PM HelloShitty: and what about AREF?
04:07 PM polprog: aref to ground via a capacitor
04:07 PM HelloShitty: I just need a cap from AREF to GND, nothing else?
04:08 PM HelloShitty: ok
04:08 PM HelloShitty: And the voltage that I will have at the AREF pin is what? 5V?
04:08 PM Emil: HelloShitty: "arduino uno schematic"
04:08 PM polprog: what is the reference youve set? just read that chapter.
04:09 PM polprog: Emil: lulza about what? java?
04:09 PM Emil: polprog: yeah
04:09 PM Emil: "I was so frustrated I took up Java"
04:09 PM Emil: I find that hilarious :D
04:10 PM HelloShitty: polprog: I'm not sure what is the answer I should give
04:10 PM HelloShitty: doesn't this connection, this wiring needs to match the ADC setup?
04:12 PM HelloShitty: I mean, don't I need to match this AREF pin connection with the table from page 248 from my link?
04:12 PM HelloShitty: http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf
04:13 PM HelloShitty: In other words, the connection/wiring I did in the uC needs to match one of the options in table of page 248, no?
04:13 PM HelloShitty: I think it's oprion that says:
04:13 PM HelloShitty: AVCC with external capacitor at AREF pin
04:13 PM HelloShitty: but want to make sure
04:14 PM Emil: What the heck is a problem?
04:14 PM Emil: We have told you like 50 times over 3 days what you are supposed to have :D
04:14 PM HelloShitty: Because I dont's understand if I need to match the wiring to the table or the table to the wiring
04:15 PM Emil: All my fucking wot. Just put the capacitor on aref
04:15 PM Emil: Repeating that over and over is fukken dump
04:15 PM HelloShitty: I mean, when I connect AREF to GND via a cap, I'm not sure to what option that would correspond in that table
04:16 PM HelloShitty: no one told me so far something like: it's 1st or 2nd or 3rd or 4th option from that table
04:16 PM Emil: How dense are you? :D It says extremely clearly https://emil.fi/jako/kuvat/2017-09-03_23-45-05_dND5CbY7.png
04:16 PM HelloShitty: that's what I want to make sure so that I set the ADC correctly
04:16 PM Emil: HelloShitty: learn to fucking read
04:17 PM HelloShitty: Emil: I can understand that I'm not bright but it's wortheless to use those wording in my opinion
04:17 PM HelloShitty: but ok
04:17 PM HelloShitty: I can read
04:17 PM Emil: HelloShitty: if you can't understand after 3 days
04:17 PM HelloShitty: but I have right to not understand what I'm reading, I guess
04:17 PM Emil: I hold my right to state that opinino
04:17 PM Emil: HelloShitty: that's an entirely different issue
04:17 PM HelloShitty: ok ok
04:17 PM HelloShitty: nevermind
04:18 PM Emil: HelloShitty: understanding why is not the same as what should I do
04:18 PM HelloShitty: as you see I still haven't got the answer despite the fact that I think which one it is
04:18 PM HelloShitty: I just wanted to make sure
04:18 PM Emil: If you want to understand why read the datashit or study EE
04:18 PM HelloShitty: but instead of someone tell me "yes, it's option 1 or 2 or whatever" we are discussing my intellingece or the lack of it
04:19 PM Emil: a) we are not here to do your bidding
04:19 PM Emil: fuck off if you think that
04:19 PM Emil: b) We have stated multiple time what selection to make
04:19 PM HelloShitty: ok, this always ends in the same spot
04:19 PM HelloShitty: You say you did, I can't find it
04:19 PM Emil: REFS1 to 0 and REFS0 to 1 for AVCC with external cap at AREF
04:19 PM Emil: HelloShitty: perhaps because you can't read?
04:20 PM Emil: Because LeoNerd polprog and a multitude of other people have also said the same thing
04:20 PM HelloShitty: either you said it between lines or I missed it
04:20 PM Emil: No
04:20 PM Emil: I it was said in no uncertain terms
04:20 PM Emil: 2 days ago
04:21 PM HelloShitty: ok, I know I can find a lot of help here and that's why I think IRC is the best source of information
04:21 PM HelloShitty: but experienced people here are also used to only say the stuff you say
04:21 PM LeoNerd: Ah hello again
04:22 PM HelloShitty: rtfm rtfm rtfm over and over again
04:22 PM HelloShitty: You guys always assume we have basic knowledge
04:22 PM HelloShitty: but most of the times we don't
04:22 PM LeoNerd: Well... Yes you have to start somewhere :)
04:22 PM HelloShitty: I get this behaviour all the time here in freenode
04:22 PM HelloShitty: and you will say:
04:22 PM HelloShitty: that's because you have the same behaviour all the time
04:23 PM LeoNerd: Can be tricky to work out everyone's backstory at times of course. It's not like we get a full CV upfront to check what people do and don't know
04:23 PM HelloShitty: yes, I haven't born with knowledge already inside my brains
04:23 PM LeoNerd: Oh sure; nobody has
04:24 PM HelloShitty: LeoNerd: but experienced people, most of the times, here in freenode, assume we MUST born with that knowledge
04:24 PM LeoNerd: Generally I go for not trying to spend too long writing *eeeeeverything* upfront because that will take all day for me to write and all day for someone else to read and just wastes time. I usually hope that people ask more questions if there's still gaps
04:24 PM HelloShitty: in C language irc channels it's the same
04:24 PM HelloShitty: and not only
04:24 PM HelloShitty: I get this flamings in many freenode channels
04:25 PM HelloShitty: I also understand that
04:25 PM HelloShitty: But I'm not sure you agree with the following
04:26 PM HelloShitty: If I hand you some book about my daily job, when it explains the basics of my job
04:26 PM Emil: HelloShitty: The fact that you are complaining abou this
04:26 PM HelloShitty: it can be a thousand pages long
04:26 PM Emil: HelloShitty: shows exactly why you are not getting help
04:26 PM HelloShitty: you can read it 2 or 3 times
04:26 PM Emil: HelloShitty: and how you are so ignorant and ungrateful
04:26 PM HelloShitty: but still you'll have questions that will be basic for me
04:26 PM HelloShitty: because I'm working on that area for like 14 years now
04:27 PM Emil: HelloShitty: the issue is with you
04:27 PM Emil: HelloShitty: adopt a better style and you'll get help
04:27 PM HelloShitty: Emil: I also get that a lot
04:27 PM Emil: like, more pleasantly worder
04:27 PM Emil: HelloShitty: then perhaps the issue is with you?
04:27 PM Emil: HelloShitty: like
04:27 PM Emil: HelloShitty: if everyone around you is an asshole, perhaps it's you who is the asshole?
04:27 PM LeoNerd: Hmm.. Given a thousand-page book I probably wouldn't read it start-to-end anyway. I'd probably just skim it to get a toplevel view of the sorts of subjects likely to be in it, and then expand and reread those parts as I find more questions
04:27 PM HelloShitty: Emil: ad what about "don't ask to ask! Just ask!" Ring any bell? I bet it does
04:28 PM LeoNerd: Being lazy (lazy as in Haskell) is a good thing :)
04:28 PM HelloShitty: and Emil you may feel that I'm ungratfull now, but if you check logs of this channel
04:28 PM Emil: :D
04:28 PM HelloShitty: I think that most of the times I have thanked the help
04:28 PM Emil: top kek
04:29 PM HelloShitty: over and over
04:29 PM HelloShitty: but ok
04:29 PM HelloShitty: I'm usued to that too
04:29 PM LeoNerd: Well anyhow; this is all entirely meta and feels like it could be rather circular, so perhaps we should avoid it for now?
04:29 PM HelloShitty: so I can't get flamed everytime I'm said all those things
04:29 PM Emil: Can I rant about this wheelchair I'm developing a controller for?
04:30 PM Emil: I mean
04:30 PM HelloShitty: sure
04:30 PM Emil: a) the fuck is with dacs behaving absolutely rubbish
04:30 PM Emil: b) why the fuck must the dac be completely retarded in design
04:30 PM Emil: sorry
04:30 PM LeoNerd: What's the DAC in question?
04:30 PM Emil: wheelchair be retarded
04:30 PM Emil: and c)
04:30 PM HelloShitty: so, LeoNerd
04:31 PM HelloShitty: you said the other day how you would clear and set the last bits of ADMUX
04:31 PM Emil: I fucking hate devices that you are supposed to develop things on that don't give relevant documentation
04:31 PM HelloShitty: to set only REFS0
04:31 PM Emil: LeoNerd: MCP4822
04:31 PM LeoNerd: Hrm.. I don't know that chip in particular; but I've used the 4725
04:31 PM Emil: I tried TLV5620IDR
04:31 PM LeoNerd: MCP seem to make a tonne of similar sorts of chips; I wonder how it differs
04:31 PM Emil: And that is shite
04:32 PM Emil: like
04:32 PM Emil: broken piece of shit
04:32 PM Emil: It doesn't even fucking work
04:32 PM LeoNerd: Ooh, dual channel
04:32 PM LeoNerd: Because, buying two chips would be too much work? ;)
04:32 PM Emil: LeoNerd: yeah it provided two channels nicely :)
04:32 PM Emil: LeoNerd: but
04:32 PM Emil: and this is important
04:32 PM Emil: after closely consulting the only available documentation
04:33 PM LeoNerd: Ah, SPI
04:33 PM Emil: I would have only needed one chip (I used two) instead of one
04:33 PM Emil: instea of two*
04:33 PM Emil: LeoNerd: but the data interface is nice
04:33 PM Emil: LeoNerd: It was super quick to get running
04:34 PM LeoNerd: HelloShitty: [awaiting the actual question]
04:34 PM HelloShitty: LeoNerd: sorry I was waiting for your reply
04:34 PM HelloShitty: lol
04:34 PM LeoNerd: Emil: Mm; looks quite simlar to the 4725 really. Iwonder if they're all just a big similar familiy that varies in interface, channel count and bit depth
04:34 PM Lambda_Aurigae: polprog, 555 mini engineers notebook by forest m. mims III
04:34 PM HelloShitty: You told me how you would set those bits
04:35 PM HelloShitty: you used an expression that I think was clearing the bits first and setting them after
04:35 PM LeoNerd: Emil: What trouble are you having with yours?
04:35 PM HelloShitty: Do you remember it?
04:35 PM LeoNerd: HelloShitty: Yes I do remember.
04:36 PM HelloShitty: Can you type it again?
04:36 PM HelloShitty: I can't remember it
04:36 PM LeoNerd: *sigh*
04:36 PM LeoNerd: It's really nothing special to ADC.. or to AVR ... or to anything really
04:36 PM LeoNerd: It's just the generic "how to set some bits of a bitmask'ed register"
04:37 PM LeoNerd: The same exact pattern could apply to any field of any register on AVR, PIC, ARM, ...
04:37 PM Emil: LeoNerd: the output is absolutely not 12 bits
04:37 PM Emil: not even 10
04:37 PM Lambda_Aurigae: HelloShitty, you should use a real irc client with logging...that way you can go look at your logs.
04:37 PM LeoNerd: (well, that too ;) )
04:37 PM HelloShitty: I'm using irssi
04:37 PM HelloShitty: I can go back a few pages
04:37 PM Lambda_Aurigae: I can go back a few years
04:37 PM LeoNerd: The general idea is to mask away *all* the current bits in the field you're modifying, so when you set some of the bits, you don't risk there being other bits left over
04:37 PM HelloShitty: let me see if I can scroll back that much
04:38 PM LeoNerd: REG = (REG & ~BITS) | (newvalue & BITS);
04:38 PM Lambda_Aurigae: not scroll back...actual logs...saved on the computer.
04:38 PM LeoNerd: ^-- is the general pattern
04:38 PM LeoNerd: Where "BITS" is some (compiletime) constant making a mask for the bits you're trying to modify here
04:39 PM HelloShitty: ok thanks
04:39 PM LeoNerd: So how about, rather than going to relearn what I typed by rote, you actually read theabove and understand it
04:39 PM LeoNerd: That way you'll be able to reproduce it from understanding, not from plain memory
04:39 PM HelloShitty: sure
04:40 PM HelloShitty: I'm writing it on paper and I'll look to it and make some examples in paper
04:45 PM LeoNerd: Well, whatever works for you
05:01 PM Jartza: d'oh
05:02 PM Jartza: after playing around with nxp kinetis cortex-m chips' i2c periphery, I sorta miss AVR
05:02 PM Jartza: haha
05:02 PM LeoNerd: Ooh?
05:03 PM LeoNerd: I've never felt the AVR's I²C unit to be all that nice actually, those weird status codes for example
05:04 PM Jartza: at least they have most of the time correct behaviour
05:04 PM Jartza: but this i2c just keeps losing master arbitration, in a single master bus
05:04 PM Jartza: and it goes into some kind of breech-state
05:05 PM LeoNerd: Huh..
05:05 PM Jartza: needs lot of fiddling to get it turned around again
05:05 PM Jartza: I've been now fighting with this for 3 days and can't just figure out
05:06 PM Jartza: checking with logic analyzer, everything looks good except... STOP is not generated, because the i2c claims it has already stopped / lost master arbitration
05:06 PM LeoNerd: That's upsetting
05:06 PM Jartza: aaaaand then the slave device on bus gets confused after a while and I need to reset that too
05:06 PM LeoNerd: Yeah
05:07 PM Jartza: and do the regular rain dance for i2c clock recovery
05:07 PM Jartza: like, sending 9 clock pulses etc.
05:08 PM Jartza: I've now read the kinetis reference manual i2c part several times through, I'm pretty sure I understand all the bits in registers...
05:08 PM Jartza: I just don't understand why it loses arbitration
05:08 PM LeoNerd: I remember spending aaaages trying to get the AVR SPI master working right first time
05:08 PM LeoNerd: When I eventually hit on my mistake, it was that setting register values was order-dependent
05:09 PM Emil: Jartza: what's your toolchain?
05:09 PM LeoNerd: You have to set the SS# line as a driven output in the DDRx register *before* (or is it after, I forget now) you enable the SPI unit
05:09 PM LeoNerd: Otherwise weird things happen
05:09 PM Emil: LeoNerd: AVR SPI is suuuuper simply
05:09 PM Emil: LeoNerd: I got it working in like 3 minutes :D
05:09 PM Emil: When I first tried it
05:09 PM LeoNerd: Emil: You probably lucked out and got the right order
05:10 PM LeoNerd: Aside from that it *was* dead simple
05:10 PM Jartza: Emil: toolchain for what? :)
05:10 PM LeoNerd: But if you get that wrong, the chip resets itself
05:10 PM Emil: Jartza: kinetis
05:10 PM Emil: LeoNerd: eh?
05:10 PM Jartza: just whatever homebrew gave me
05:10 PM Jartza: I think gcc 6.3.1
05:10 PM Jartza: and binutils
05:10 PM Jartza: plus segger j-link
05:10 PM Emil: Jartza: yeah but so what system libs do you use?
05:11 PM LeoNerd: Emil: If you fail to correctly set SS#'s direction properly, when you pull down the slave assert line, the chip thinks another master is driving it, gets all upset and wants to jump to the SPI interrupt handler. Except I didn't have one, so chip reset
05:11 PM Emil: CMSIS?
05:11 PM Jartza: npne
05:11 PM Jartza: none
05:11 PM Emil: LeoNerd: true but it's clearly mentioned imo
05:11 PM LeoNerd: Emil: It is clearly mentioned that you have to set DDRx correctly. What isn't mentioned is that the order matters.
05:11 PM Emil: Eh?
05:11 PM LeoNerd: I literally swapped two lines of source code
05:12 PM LeoNerd: You have to set the bit in DDRx *before* you enable the SPI master
05:12 PM Emil: Intersting
05:12 PM LeoNerd: If you enable the SPI master first and *then* fiddle with the DDRx register, something somewhere gets very confused and the chip will crash later
05:12 PM Jartza: well there's cmsis core includes hanging there, but nothing else
05:12 PM Emil: Jartza: wait wat
05:12 PM LeoNerd: The datasheet says you have to do both steps. It doesn't emphasise enough that the order in which you do them matters
05:12 PM Emil: Jartza: what are you using for register definitions?
05:13 PM Emil: LeoNerd: I don't think it does matter hmm
05:13 PM LeoNerd: It mattered to me
05:13 PM Jartza: custom files
05:13 PM LeoNerd: As I said, to fix it all I had to do was swap the order of two lines in my .c file
05:13 PM Emil: Interesting
05:13 PM LeoNerd: There's a chance it's a subtle silicon bug of course
05:13 PM Emil: Jartza: you wrote those?
05:13 PM Emil: Jartza: nice
05:14 PM Jartza: custom generator with python
05:14 PM Jartza: it creates them from SVD
05:15 PM Jartza: https://github.com/posborne/cmsis-svd
05:16 PM Jartza: modified from that because I don't like the format :)
05:16 PM Jartza: and I had to dig quite a lot to find the .svd file for kinetis chips I'm currently playing with
05:16 PM Jartza: kl05z, kl25z, k26 and k28
05:22 PM Emil: Jartza: hmm
05:24 PM Jartza: https://www.keil.com/dd2/pack
05:25 PM Emil: >Keil
05:25 PM Emil: Yeaaaah I aint touchin dat
05:26 PM Jartza: me neither, but Keil device family packs seem to contain files for many MCUs
05:26 PM Jartza: and the .pack is really just .zip
05:28 PM Jartza: just download the humongous 150MB .pack file, extract with unzip, find SVD file and then delete the rest :D
05:28 PM Jartza: actually the hardest to find was the kl05z
05:29 PM Lambda_Aurigae: what is the SVD file?
05:29 PM Jartza: System View Description
05:30 PM Jartza: basically XML file describing the MCU, registers, pins etc.
05:30 PM Lambda_Aurigae: aahh.
05:30 PM Lambda_Aurigae: just looked it up.
05:30 PM Lambda_Aurigae: xml..horrid...eeww...
05:30 PM Lambda_Aurigae: bad xml...
05:30 PM LeoNerd: Sounds similar to the ones Atmel^W Microchip(?) make for the AVR chips
05:31 PM Jartza: yes
05:31 PM Jartza: and that can be used to generate register definitions etc
05:31 PM Jartza: http://www.keil.com/pack/doc/CMSIS/SVD/html/svd_Format_pg.html
05:31 PM Lambda_Aurigae: yeah.
05:32 PM Lambda_Aurigae: just browsed that page.
05:33 PM Jartza: microchitmel uses "atdf" files
05:33 PM Jartza: but they are pretty similar, also XML
05:33 PM Jartza: just much more simplified
05:34 PM Emil: Sounds convoluted and horrible
05:35 PM Jartza: on arm side, what's convoluted and horrible is the vendor SDKs
05:35 PM Jartza: s/is/are/
05:35 PM Emil: Absolutely agree
05:36 PM Jartza: usually horrible bloat of undocumented vendor lock
05:37 PM Emil: https://emil.fi/jako/kuvat/2017-09-04_00-59-50_95Xtnsh2.png
05:37 PM Emil: Lolwtf
05:37 PM Jartza: also, they usually don't work too well
05:38 PM Jartza: like this kinetis driver I took from "ksdk"
05:38 PM Emil: There is absolutely nothing named keil
05:38 PM Emil: in debian repos
05:38 PM Emil: That word doesn't exist there :D
05:38 PM Emil: At all :D
05:38 PM Jartza: it asserts when you lose master arbitration
05:38 PM Jartza: why? because someone was too lazy to add 7 lines for recovery
05:39 PM Jartza: still the whole blob is 380MB zip file....
05:39 PM Jartza: like, WTF
05:39 PM Emil: >380MB
05:40 PM Emil: >For system libs
05:40 PM Emil: alllllll myyyyy waaaaat
05:40 PM Emil: :D
05:40 PM Emil: That must contain some huge bitmaps
05:40 PM Jartza: well the ksdk I downloaded was 380MB zippee
05:40 PM Emil: Someone from marketing went like "yes we must package a fuckton of images and videos here
05:40 PM Emil: "
05:40 PM Emil: Jartza: so even bigger if unzipped T.T
05:40 PM Emil: Try listing all the files in size order
05:40 PM HelloShitty: Can you guys help me understanding one statement on the datasheet?
05:40 PM Jartza: don't want to
05:41 PM Jartza: I already deleted the whole "sdk"
05:41 PM Jartza: because it's not sdk
05:41 PM HelloShitty: I'm reading about the ADSC bit of ADCSRA register
05:41 PM HelloShitty: My page 249
05:41 PM Jartza: it doesn't come with compiler, toolchain or ide :D
05:41 PM HelloShitty: http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf
05:41 PM HelloShitty: It's about ADC start conversion
05:42 PM HelloShitty: It says about Songle Mode operation and Free Running mode operation
05:42 PM Emil: >https://emil.fi/jako/kuvat/2017-09-04_01-11-12_T8hZPg5I.png
05:42 PM HelloShitty: Single*
05:42 PM Emil: >More future proof
05:42 PM Emil: I don't think _anything_ can kill GCC
05:42 PM HelloShitty: And it syas:
05:42 PM Emil: HelloShitty: yeah for single mode you must trigger it manually
05:43 PM HelloShitty: In Single Conversion mode, write this bit to one to start each conversion.
05:43 PM Emil: and for free running you give the trigger a source in a later register
05:43 PM HelloShitty: hum, ok but this bit is alwasy set to 1?
05:43 PM Jartza: Emil: well how about CM0+ ? ;)
05:43 PM Jartza: it's not CM3 or higher
05:43 PM Emil: HelloShitty: it's not
05:43 PM HelloShitty: Datasheet says:
05:43 PM HelloShitty: In Single Conversion mode, write this bit to one to start each conversion. In Free Running mode, write this bit to
05:43 PM HelloShitty: one to start the first conversion.
05:43 PM HelloShitty: ------
05:44 PM HelloShitty: Is this a mistake?
05:44 PM Jartza: no
05:44 PM HelloShitty: Because in both modes they say to set it to 1
05:44 PM Emil: Jartza: context: https://emil.fi/jako/kuvat/2017-09-04_01-13-08_Ss91uF9B.png
05:44 PM Jartza: it's pretty clear. writing 1 to that bit starts conversion.
05:44 PM Emil: HelloShitty: read the section completely
05:44 PM HelloShitty: So how do I set it for Single Mode or Free Running mode?
05:45 PM Emil: Read the section completely
05:45 PM Emil: Or look at the register description
05:45 PM Emil: It details it clearly
05:45 PM HelloShitty: This quote I pasted here is from register description
05:45 PM HelloShitty: I'm reading it
05:47 PM Emil: https://emil.fi/jako/kuvat/2017-09-04_01-16-13_GSchuuCf.png
05:47 PM Emil: Clearly said
05:47 PM Emil: Right under that one
05:47 PM Emil: https://emil.fi/jako/kuvat/2017-09-04_01-16-32_SC4TMZPX.png
05:47 PM Emil: Are you blind? :D
05:47 PM HelloShitty: The description of this bit is not telling me how to set ADC to Single Mode or to Free Running mode... Or I'm not understanding
05:48 PM Emil: It tells you everything
05:48 PM HelloShitty: I'm reading bit 6
05:48 PM HelloShitty: Where it tells me how do I set Single Mode or Free Running mode?
05:49 PM Emil: Are you retarder, blind or just stupid?
05:49 PM Emil: retarded*
05:49 PM Emil: Or am I in ignore
05:49 PM HelloShitty: ok
05:49 PM HelloShitty: forget it
05:50 PM HelloShitty: I'm not going to insult anyone here
05:50 PM Emil: Top ek
05:51 PM HelloShitty: I can't see anywhere anything saying "To choose Single Mode set bit xxx to 1 (ot 0)"
05:51 PM HelloShitty: neither I can see "To choose Free Running mode set bi yyy to 1 (or 0)"
05:51 PM HelloShitty: but I'm stupid, blind and retarded
05:52 PM HelloShitty: But even so I appreciate your (zero) help and insults
05:52 PM Emil: https://emil.fi/jako/kuvat/2017-09-04_01-21-48_eIVflWKn.png
05:53 PM Emil: HelloShitty: I must ask you
05:53 PM Emil: how retarded are you? :D
05:53 PM Emil: I have already given you a picture that explains how to enable autotriggering mode
05:54 PM Emil: https://emil.fi/jako/kuvat/2017-09-04_01-23-03_POB15c0t.png
05:54 PM HelloShitty: Probably I'm so retarded that I can't see the Single Mode and Free Running mode description is Bit 6 description and you, somehow magically, can see it there!
05:55 PM Emil: ..................
05:55 PM Emil: How about you do as I told you
05:55 PM Emil: and fucking look at bit five
05:55 PM Emil: You retarded idiot. Off into ignore you go.
05:55 PM Emil: Good luck in your selected path.
05:56 PM Emil: Can't deal with people like that, ugh
05:57 PM HelloShitty: I can't also find any reference to Single Mode and Free Running mode at Bit 5 description, but ok
05:57 PM HelloShitty: I will ignore you too
05:57 PM HelloShitty: problems avoided
05:58 PM HelloShitty: Somehow you point me out to bit 5 but right after you point me to the beginning of the chapter... How retarded am I!
05:58 PM HelloShitty: and at the beginning of the chapter, yes, I admit, it's saying there about Single mode
06:00 PM HelloShitty: And thank you for the help
08:27 PM enh: I see peace all around here
08:27 PM Lambda_Aurigae: peace is overrated.
08:29 PM cehteh:
08:31 PM cehteh: enh: fixed your bug yet?
08:32 PM enh: not yet. I was born bugged.
08:32 PM cehteh: :D
08:32 PM enh: What else would justify going through a phd?
08:33 PM Lambda_Aurigae: piled higher and deeper
08:34 PM enh: a lot deeper and higher
08:35 PM Emil: I'm having this "iamverysmart" moment
08:35 PM Emil: like
08:35 PM enh: seize it
08:35 PM Emil: Í find these supposedly smarter and more advanced people doing siiilly things
08:35 PM Emil: and I'm like
08:35 PM Emil: "why"
08:36 PM Lambda_Aurigae: welcome to my world.
08:36 PM Emil: And I feel like I know a lot of shit
08:36 PM Lambda_Aurigae: I know I know a lot of shit.
08:36 PM Lambda_Aurigae: and can figure out about anything I put my mind to.
08:36 PM enh: the more you study, the more responsibility you gather, the less money you make, the more tired you get, the more shit you take.
08:37 PM Emil: Yes but I'm an underachieving student and you are a printer repairguru :D
08:37 PM Emil: enh: you speak of the truth
08:37 PM Lambda_Aurigae: people ask me questions constantly at work and I throw the answer back at them almost immediately and they can't figure out how I can know all this stuff.
08:37 PM Emil: Lambda_Aurigae: hail
08:37 PM enh: hail
08:37 PM Lambda_Aurigae: printers and computers and networks and just about anything.
08:38 PM enh: the answer: you are probably fact curators
08:38 PM enh: hi IQs.
08:38 PM enh: high
08:38 PM Lambda_Aurigae: tested at 159 IQ when I was 9
08:38 PM enh: high enough
08:38 PM Lambda_Aurigae: never been tested since.
08:38 PM Lambda_Aurigae: I read a lot and learned to read between the lines a looong time ago.
08:39 PM Emil: Lambda_Aurigae: :DDDDDD
08:39 PM Emil: Lambda_Aurigae: you joined the iamverysmart club
08:39 PM enh: i was always considered a physicist which only does technical stuff.
08:39 PM Lambda_Aurigae: I've since killed a LOT of brain cells.
08:39 PM Lambda_Aurigae: used to drink very heavily in my younger days.
08:41 PM enh: i don't. beats heavy on me
08:42 PM enh: vegetarian since 7
08:42 PM Lambda_Aurigae: dang vegeterrorists!
08:42 PM enh: :)
08:42 PM Lambda_Aurigae: I guess alcohol exploits single celled yeast creatures.
08:43 PM enh: probably
08:43 PM enh: but this is a vegan topic
08:43 PM Lambda_Aurigae: vegans...worse than vegeterrorists.
08:43 PM enh: a lot worse
08:43 PM enh: no honey
08:44 PM enh: i like honey
08:44 PM Lambda_Aurigae: I like meat.
08:44 PM Lambda_Aurigae: and honey
08:44 PM Lambda_Aurigae: not usually together though.
08:45 PM Lambda_Aurigae: meat's meat and a man's gotta eat!
08:45 PM enh: if you hunt it, i agree.
08:46 PM Lambda_Aurigae: I have
08:46 PM Lambda_Aurigae: many times.
08:46 PM enh: if you buy on plastic packets, i do not agree. But that is another topic
08:46 PM Lambda_Aurigae: grew up hunting
08:46 PM Lambda_Aurigae: in my teenage years we hardly ever had any store bought meat.
08:47 PM enh: problem is when people start believing that meat comes in small packets.
08:47 PM Lambda_Aurigae: my father, three brothers, and myself hunted a lot.
08:48 PM Lambda_Aurigae: lots of deer, rabbit, squirrel, quail, wild turkey, wild boar.
08:48 PM Lambda_Aurigae: even today most of our meat comes from a farm about 15 miles from here...brother-n-law raises cattle.
08:49 PM Lambda_Aurigae: we had chickens for a few years here...sold them to someone down the road but still get fresh eggs from them.
08:49 PM enh: have you ever watched the movie called earthlings?
08:49 PM Lambda_Aurigae: nope.
08:49 PM enh: good one
08:49 PM enh: another perspective
08:50 PM enh: for people which can support different perspectives
08:50 PM Lambda_Aurigae: I've worked in chicken butcher facility.
08:50 PM enh: who can, sorry
08:50 PM enh: many people can't
08:50 PM Lambda_Aurigae: I understand where food comes from.
08:51 PM Lambda_Aurigae: hell, we have a nice big garden here too.
08:51 PM Lambda_Aurigae: can veggies and meat and such.
08:51 PM enh: you sent a google map link. Looks nice the region
08:51 PM enh: calm enough
08:52 PM Lambda_Aurigae: middle of no-flippin-where iowa.
08:52 PM Lambda_Aurigae: grew up in the north carolina mountains.
08:53 PM enh: i only know a few cities in US.
08:54 PM Lambda_Aurigae: I avoid cities whenever possible.
08:54 PM enh: crossing us is a thing i still want to do. by car.
08:54 PM enh: US
08:55 PM enh: how is the vegetation in north carolina? Forests? Dense
08:55 PM enh: ?
08:56 PM Lambda_Aurigae: medium forest.
08:56 PM Lambda_Aurigae: can be dense in some areas.
08:57 PM enh: we love forests. waterfalls, tracks, nature in general. I lived more than 30 years in Rio de Janeiro, where a big national park resides in the middle of the city. The biggest on in the world, I believe. Amazing park.
08:57 PM Lambda_Aurigae: I haven't been back there since 1985.
08:59 PM enh: When I settle down near nature, nothing will take me from there any more.
09:00 PM Lambda_Aurigae: I once thought I would settle down and be a hermit in the deep forest.
09:00 PM Lambda_Aurigae: things change.
09:00 PM enh: they do
09:01 PM enh: kids change a lot of things
09:01 PM Lambda_Aurigae: as does marriage.
09:01 PM Lambda_Aurigae: children are just a terminal sexually transmitted disease.
09:01 PM enh: indeed
09:04 PM enh: about children, I do not think I will ever love anybody with the intensity I love my daughter
09:05 PM enh: I once thought about creating artificial life, understanding consciousness. After she was born I only think about raising her with the highest amount of knowledge I can transfer to her and make her a descent human being
09:05 PM Lambda_Aurigae: one of those things...chemical imbalance caused by the parasite known as child.
09:05 PM enh: :)