#avr | Logs for 2013-09-19

Back
[00:13:35] <ColdKeyboard> Is there an easy way (whithout using libraries) to convert integer like 520 to ASCII string and send it over USART?
[00:19:15] <Casper> itoa() but the uart part is another thing
[00:19:32] <Casper> you need some code for that, can write your own, or use a lib for it
[00:19:47] <Casper> I like peter fleury's uart libs for uart
[00:20:01] <Casper> interrupt driven ring buffer, quite nice
[00:20:51] <Casper> bed time, see ya
[01:53:54] <ColdKeyboard> Is there a way for the OLS to display 1/0 above signals or even better, display HEX values?
[02:48:31] <blathijs> ColdKeyboard: There are protocol decoders, which should do what you want
[02:49:06] <blathijs> ColdKeyboard: But one can only show HEX values if you know how the protocol works (e.g., how long a bit is, where a byte starts, etc.), so you'll have to enter some details in the decoder
[02:50:01] <blathijs> ColdKeyboard: As for using the bus pirate with OLS, I recommend you use the latest 6.3 Beta firmware on the bus pirate. Not all firmwares actually have the OLS support compiled in (this was a bit vague), but also the 6.3 beta was more stable than the 6.1 (IIRC) firmware for me
[02:57:42] <megal0maniac_afk> NOOOOOOOOOOOOOOOOOOOOOOOOOO
[02:58:06] <megal0maniac_afk> I have been afflicted by the Seagate BSY error. Sneakily, on a Maxtor drive
[02:59:05] <megal0maniac_afk> Ironically, I really hope it actually /is/ the BSY error
[07:20:42] <ambro718> I see that in atmega2560, registers for ports H-L can't be accessed using sbi/cbi instructions; does that mean I need to use sei/cli when setting or clearing bits, in general?
[07:41:26] <timemage> ambro718, you mean sbi/cbi?
[07:47:23] <ambro718> timemage: I mean what I said, read again ;)
[07:47:45] <timemage> ambro718, i have. good luck i guess.
[07:48:08] <ambro718> sbi/cbi can access the very low numbered I/O registers, but port regs for high port have high register numbers
[07:48:29] <ambro718> I'm just trying to confirm that I do indeed need to use critical sections for these ports
[07:53:33] <timemage> ambro718, i'm not aware of an atomic instruction you could use if that's what you're asking.
[07:54:24] <ambro718> yes, I see
[08:06:05] <Tom_itx> sei/cli are for enabling interrupts
[08:08:09] <ambro718> of course they are
[08:10:46] <Tom_itx> has nothing to do with setting or clearing general bits
[08:11:05] <Tom_itx> does that mean I need to use sei/cli when setting or clearing bits, in general?
[08:11:15] <Tom_itx> SEI: Global Interrupt Enable
[08:11:22] <Tom_itx> CLI Global INterrupt Disable
[08:12:55] <jadew> yes you need to use sei and cli if you can't use sbi/cbi
[08:13:07] <jadew> because that means you'll be using some temporary registers
[08:13:33] <Tom_itx> for general registers?
[08:13:47] <Tom_itx> that doesn't make sense
[08:13:56] <jadew> Tom_itx, his dilema is that he can't use sbi/cbi for some registers
[08:14:04] <jadew> which means he'll have to use a different approach
[08:14:05] <Tom_itx> yeah i know that
[08:14:13] <jadew> as in, store the value in a different register
[08:14:21] <jadew> do something with it
[08:14:21] <jadew> etc
[08:14:26] <Tom_itx> the instruction set was written when avrs were small
[08:15:17] <jadew> I suppose if you know all your interrupts are saving the state of the registers they are using and you aren't using the temporary register, you wouldn't need sei/cli
[08:15:55] <jadew> but generally speaking, the difference between sei/cli and a bunch of other instructions to get to the same result is that an interrupt can occur in the middle of it
[08:16:53] <jadew> if you keep that in mind when doing it and you're aware of how your interrupts work, you should know if it's necesary to use sei/cli or not
[10:15:53] <mska> if I supply an atmega168a by 5V and apply 3.3V to a pin, will it read as 1?
[10:22:27] <twnqx> in my experience - yes
[10:22:36] <twnqx> (not a mega, but still)
[10:23:09] <mska> thanks
[10:24:04] <twnqx> it's not guaranteed, but pretty close, according to data sheet
[10:28:40] <mska> do you know what is the threshold for logic high if I supply by 5V?
[11:27:02] <OndraSter__> mska, datasheet
[11:36:52] <ColdKeyboard> Can someone guid me how does OLS or SUMPS protocol work?
[11:38:16] <ColdKeyboard> I have made sampling on the MCU and UART is working ok but I don't know what commands desktop application sends and what response it requires
[11:38:35] <ColdKeyboard> I tried
[11:38:39] <ColdKeyboard> the protocol
[11:38:49] <ColdKeyboard> 01@1
[11:38:52] <ColdKeyboard> 01@20
[11:39:09] <ColdKeyboard> etc and it works but I have to read the serial, then save it to text file and open in OLS :\
[11:39:37] <ColdKeyboard> It would be much easier if I could read it directly from USART in OLS
[13:59:09] <abcminiuser> Man silicon design is crazy
[13:59:25] <abcminiuser> Feels like they're talking a different language
[14:06:00] <Steffanx> whoa, abcminiuser really starts to turn into a full grown man
[14:06:43] <abcminiuser> When I see a test validation report for the "modulename134nmx100mnto" it breaks my brain
[14:06:59] <abcminiuser> And yes, that's almost bang on what they're called, lack of spacing and everything
[14:49:41] <jadew> aren't they using HDL to describe it?
[15:41:24] <Tom_itx> i did some work for a guy here that writes tests for silicon designs