#avr | Logs for 2013-08-21

Back
[06:42:01] <ctin> hello! can somebody help me with ATZB-900-B0R?
[06:43:55] <ctin> i want to programm GPIO pins, but i can't found wich port is it
[06:54:57] <RikusW> It seems the datasheet isn't helpful....
[06:55:03] <ctin> yap!
[06:55:20] <ctin> and datasheet for 1281 is too
[06:55:25] <ctin> *isn't too
[06:55:33] <ctin> i don
[06:55:37] <ctin> sorry
[06:56:01] <ctin> i don't know what to do :) Where i can search target PORTS?
[06:56:35] <RikusW> set all ports as input with pullup
[06:56:49] <RikusW> then read all PIN registers will pulling them down one by one
[07:03:54] <ctin> OMG
[07:04:15] <ctin> i have no UART and use just LED to recognise what i'm doing
[07:04:38] <ctin> is there other ways to find pins?
[07:05:47] <RikusW> jtag ?
[07:05:57] <RikusW> and it seems there are uart
[07:07:05] <ctin> sorry, disconnect
[07:18:56] <RikusW> (13:51:01) RikusW: jtag ?
[07:18:56] <RikusW> (13:51:10) RikusW: and it seems there are uart
[07:18:56] <RikusW> (
[07:20:12] <ctin> yes, i'm using JTAG
[07:20:29] <ctin> uart is not attached to board
[09:19:47] <MarkX> hey
[09:19:59] <MarkX> i have another dumb question
[09:20:10] <MarkX> are avr chips often used in consumer electronics?
[09:20:47] <MarkX> or are they more for hobbiests for things like the arduino?
[09:23:23] <twnqx> never saw an avr in a commercial product :P
[09:23:47] <MarkX> so what do commercial products use then?
[09:23:51] <MarkX> i doubt its ASICs
[09:26:20] <theBear> i seen them in a lot
[09:26:37] <theBear> martin lighting for example, they got single $30,000+ disco lights
[09:26:57] <theBear> and used avrs pretty much exclusively for at least 20 years
[09:27:49] <theBear> not sure their professional series has anything that ever retailed under 5grand
[09:46:29] <RikusW> I've seen mega44 used in a battery charger
[09:46:55] <RikusW> and commercial tracking devices
[09:47:01] <RikusW> (m128)
[10:06:00] <jeffmurchison> I've seen atmegas in RFID readers before.
[10:59:58] <CMLinux> Hey abcminiuser... dean?
[11:01:21] <CMLinux> You there?
[11:05:31] <abcminiuser> Yah cooking dinner
[11:06:15] <abcminiuser> Hva kan jeg hjelper deg med?
[11:06:38] <CMLinux> Oh, sorry to bug you... Working with LUFA, amazing job!
[11:07:49] <CMLinux> I wrote about an issue I'm having with creating a HID emulator on an Uno
[11:08:57] <abcminiuser> On the list?
[11:09:02] <abcminiuser> I seem to remember a post about that today...
[11:09:38] <CMLinux> Ya, on the list. I think the description of what I'm doing is fairly complete there.
[11:10:38] <CMLinux> Basically I have a multi-touch digitizer connected to a raspberry pi, that is connected to an UNO with an eth shield
[11:11:39] <CMLinux> I'm trying to emulate the digitizer with the UNO, and create HID reports with the original data
[11:12:37] <CMLinux> Kinda like the UNO keyboard emulator that is using LUFA, but
[11:13:13] <CMLinux> The data reports are 64 bytes instead of 8, and I
[11:13:42] <CMLinux> Think for some reason it is causing the endpoint to stall
[11:14:51] <abcminiuser> The endpoint size doesn't really matter as long as it matches the descriptor
[11:15:00] <abcminiuser> Larger EP sizes give better throughput however
[11:15:06] <abcminiuser> What is the contents of the HID descriptor?
[11:16:10] <CMLinux> I'm kinda new to this, likely I haven't matched them correctly. I set the endpoint size to 64 in the makefile, and believe I am sending 64 bytes of data
[11:17:26] <CMLinux> I posted the HID descriptor on the list, basically I took the output from lsusb -v
[11:18:28] <CMLinux> I'm using the keyboard demo, generic hid demo, and Darren's keyboard emulation code as a reference.
[11:18:33] <abcminiuser> The makefile value is for the control endpoint, HID data is sent over a different one (size set in Descriptors.h)
[11:18:43] <abcminiuser> However, the size isn't important, so either way is fine
[11:19:39] <CMLinux> Ok, I'm probably still a bit confused about these.
[11:19:39] <abcminiuser> What's not shown there is the actual HID descriptor, the one that describes the data
[11:19:39] <abcminiuser> No problem
[11:19:42] <abcminiuser> There's several descriptor types
[11:20:00] <abcminiuser> The ones you've posted are the device and configuration, which tell the host it has a HID interface
[11:20:31] <abcminiuser> But there's another one that tells the host what HID data to expect ("I have three buttons, the values are here in the report, and I have a joystick here....")
[11:20:44] <CMLinux> Ok, right the digitizer spec does describe the data
[11:21:19] <CMLinux> Ok, that is probably what I have messed up
[11:21:22] <abcminiuser> Here's one that describes a Joystick: https://github.com/abcminiuser/lufa/blob/master/Demos/Device/LowLevel/Keyboard/Descriptors.c#L47
[11:21:26] <abcminiuser> Err, Keyboard rather
[11:21:43] <abcminiuser> If the data you send doesn't match the format you specify in that descriptor, the host will hork and stall
[11:22:04] <CMLinux> Ok, that is probably exactly what is happening
[11:23:13] <CMLinux> It is defined in Descriptors.h? I'll have to take another look at it
[11:25:17] <CMLinux> But the digitizer docs describe the report completely, first byte is 0x13.... Touch report 1 MSB.... Etc, so I can probably put the whole thing together.
[11:26:03] <abcminiuser> It's described in Descriptors.c near the top like the linked example most likely, depending on how much Darren modified my code
[11:27:43] <CMLinux> Ok, thanks.. I don't have the code in front of me right now. But I'll take a look at it and try to get it sorted out.
[11:28:34] <CMLinux> Thanks again, really nice code. Looks incredibly clean and perfectly organized.
[11:28:55] <abcminiuser> Cheers :)
[11:45:12] <RikusW> invalid descriptors also == fun...
[13:53:31] <abcminiuser> My favourite code: https://github.com/abcminiuser/lufa-as6-integration/blob/master/LUFA/Source/EasterEgg.cs
[14:48:06] <masterq> i use ebi in 4-port modus with the xmega128a1u, some pins from the ebi bus are not in use.
[14:48:38] <masterq> CS1, CS2, CS3... is it possible to use them as normal io's?
[15:24:58] <HylianSavior> http://www.atmel.com/devices/AT90USB646.aspx?tab=parameters
[15:25:10] <HylianSavior> are the 'Touch Channels' described here some kind of peripheral for capacitive touch?
[15:49:16] <hetii> Hi
[15:50:17] <hetii> I need to flas windbond memmory 25q16 that is used in my router, could someone explain my if its possible to flash it by any ISP programmer or do i need some other special SPI programmer?
[15:50:27] <hetii> *flash
[17:59:51] <braincracker> h
[23:32:47] <spec_> hetii: More than likely you'll need a JTAG programmer,