EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Union/type help..

Started by Micah Stevens January 16, 2005

> Micah Stevens wrote:
>
> <
> < Word.
>
> Oh, God! No, please don't turn into another talk show refugee. My
> vocabulary comprises around 64000 words which one are you refering to?
>
> ;?{


I understand you guys down below are a little behind the times in slang,
but you can't blame me for that. ;)

> Only if you are doing overly tough things with it.
Kris is the real
> hardcore RF guy here. I like black box solutions. Simple devices like
> the RFM1000 are ridiculously easy to get running to meet their basic
> specs, while the nRF905 and its like are almost as easy, but far more
> flexible at a much lower price. If you want to squeeze every drop of
> performance or data rate sure it's not easy, but if you follow the
> reference designs and fairly basic design rules RF can be as easy as any
> other peripheral, like IIC/SPi etc.

I'm using the nRF2401, and although in the docs it's simple enough,
and I
have the eval boards doing flips for me, my board hooked to the MSP ain't
doing diddly.. All I can get out of it is a carrier wave in raw mode.

Stupid chip.. (frustrated)

Just a quick sanity question, can anyone confirm that the configuration
data for the Nordic nRF2401 is clocked in most significant byte first? (I
know it's MSB first, but the docs are unclear as to the order of the
bytes.)

Thanks,
-Micah


> <
> < FYI folks: The MSP WILL do ulaw encoding and decoding. (I did an
> < on-chip loopback) but it seems to be REALLY noisy. At first I thought
> < it might be dropping packets due to too much overhead, but looking at
> < the stack it seemed already.
> <
> < Just introducing this ulaw code increased my noise floor from barely
> <  noticeable to so bad you could hardly hear my voice over the top.
> < Any ideas why this would happen?
> <
> < The code I'm using is 16bit to 8bit ulaw, and I'm giving it
12 bit
> < packets, would that bear in? I would assume it would just make over
> < levels lower.
>
> Sorry, doesn't work that way. I'm not surprised you have noise.
You need
> to tailor the algorithm to 12 bits.
>
> It almost sounds like you've reversed encode and decode! With u/A-law
> the basic principal is that most of the information exists in the lower
> bits, the fine detail, the larger values simply represent
> volume/loudness, which your ear isn't as well attuned to. Thus,
assuming
> your noise levels are low anyway (I'd look really closely at this
first)
> you shouldn't increase the perceived noise by much.
>
> Al
>
> <
> < -Micah
> <
> < On Monday 17 January 2005 10:35 am, Sepp Holzmayr wrote:
> <
>


Beginning Microcontrollers with the MSP430

Alright, you win, it is easy if I set my SPI interface up correctly.. uhg..

it's always the stupid mistakes that take the most time to debug.

-Micah




Micah wrote:
> 
> 
>>Micah Stevens wrote:
>>
>><
>>< Word.
>>
>>Oh, God! No, please don't turn into another talk show refugee. My
>>vocabulary comprises around 64000 words which one are you refering to?
>>
>>;?{
> 
> 
> 
> I understand you guys down below are a little behind the times in slang,
> but you can't blame me for that. ;)

Oh I'm well aware of the slang, we hear it all on imported TV all the 
time. It's just that I refuse to descend to the level of intellect that 
  reverts to imbecilic slang to fit some street thug proto image. ;?}

No offence to you. I just can't believe that the US has descended so far 
intellectually that once respected TV presenters are now reduced to a 
vocabularly that revolves around aaaaight, word and other meaningless 
vocal farts.

> 
> 
>>Only if you are doing overly tough things with it. Kris is the real
>>hardcore RF guy here. I like black box solutions. Simple devices like
>>the RFM1000 are ridiculously easy to get running to meet their basic
>>specs, while the nRF905 and its like are almost as easy, but far more
>>flexible at a much lower price. If you want to squeeze every drop of
>>performance or data rate sure it's not easy, but if you follow the
>>reference designs and fairly basic design rules RF can be as easy as any
>>other peripheral, like IIC/SPi etc.
> 
> 
> I'm using the nRF2401, and although in the docs it's simple
enough, and I
> have the eval boards doing flips for me, my board hooked to the MSP
ain't
> doing diddly.. All I can get out of it is a carrier wave in raw mode.
> 
> Stupid chip.. (frustrated)

Of course it isn't the chip that's stupid (nor you I hasten to add). 
There is a big gap between lack of specific experience and stupidity.

> 
> Just a quick sanity question, can anyone confirm that the configuration
> data for the Nordic nRF2401 is clocked in most significant byte first? (I
> know it's MSB first, but the docs are unclear as to the order of the
> bytes.)

I've used the part, but don't have an answer to hand, as I'm
still not 
in front of my main machine, and won't be for a few more days yet. I'd

ask Kris, he'll have an answer for you I'm certain.

Al


> 
> Thanks,
> -Micah
> 
> 
> 
>><
>>< FYI folks: The MSP WILL do ulaw encoding and decoding. (I did an
>>< on-chip loopback) but it seems to be REALLY noisy. At first I
thought
>>< it might be dropping packets due to too much overhead, but looking
at
>>< the stack it seemed already.
>><
>>< Just introducing this ulaw code increased my noise floor from
barely
>><  noticeable to so bad you could hardly hear my voice over the top.
>>< Any ideas why this would happen?
>><
>>< The code I'm using is 16bit to 8bit ulaw, and I'm giving
it 12 bit
>>< packets, would that bear in? I would assume it would just make over
>>< levels lower.
>>
>>Sorry, doesn't work that way. I'm not surprised you have
noise. You need
>>to tailor the algorithm to 12 bits.
>>
>>It almost sounds like you've reversed encode and decode! With
u/A-law
>>the basic principal is that most of the information exists in the lower
>>bits, the fine detail, the larger values simply represent
>>volume/loudness, which your ear isn't as well attuned to. Thus,
assuming
>>your noise levels are low anyway (I'd look really closely at this
first)
>>you shouldn't increase the perceived noise by much.
>>
>>Al
>>
>><
>>< -Micah
>><
>>< On Monday 17 January 2005 10:35 am, Sepp Holzmayr wrote:
>><
>>
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


You see now, you're NOT stupid. Everybody makes mistakes, the smart
ones 
realise it and hunt them down. It sounded like SPI, you realised that in 
your last post, and solved it before any help was needed.

Al

Micah wrote:
> 
> Alright, you win, it is easy if I set my SPI interface up correctly.. uhg..
> 
> it's always the stupid mistakes that take the most time to debug.
> 
> -Micah
> 
> 
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


>  > I understand you guys down below are a
little behind the times in slang,
>  > but you can't blame me for that. ;)
>
>  Oh I'm well aware of the slang, we hear it all on imported TV all the
>  time. It's just that I refuse to descend to the level of intellect
that
>   reverts to imbecilic slang to fit some street thug proto image. ;?}
>
>  No offence to you. I just can't believe that the US has descended so
far
>  intellectually that once respected TV presenters are now reduced to a
>  vocabularly that revolves around aaaaight, word and other meaningless
>  vocal farts.

Haha.. most of the 'proper' english language we speak today was once
only the 
realm of the common street thug.. Either that, or stolen from someone elses 
language. Or both. 

By using the words, I'm not defending the stance of the lesser educated,
but I 
do think they are really good at coming up with monosyllabic utterances that 
often fit the bill. 

>  >>Only if you are doing overly tough things
with it. Kris is the real
>  >>hardcore RF guy here. I like black box solutions. Simple devices
like
>  >>the RFM1000 are ridiculously easy to get running to meet their
basic
>  >>specs, while the nRF905 and its like are almost as easy, but far
more
>  >>flexible at a much lower price. If you want to squeeze every drop
of
>  >>performance or data rate sure it's not easy, but if you
follow the
>  >>reference designs and fairly basic design rules RF can be as easy
as any
>  >>other peripheral, like IIC/SPi etc.
>  >
>  > I'm using the nRF2401, and although in the docs it's simple
enough, and
>  > I have the eval boards doing flips for me, my board hooked to the MSP
>  > ain't doing diddly.. All I can get out of it is a carrier wave
in raw
>  > mode.
>  >
>  > Stupid chip.. (frustrated)
>
>  Of course it isn't the chip that's stupid (nor you I hasten to
add).
>  There is a big gap between lack of specific experience and stupidity.

Thanks, eventually I usually beat these projects into submission. 

>  > Just a quick sanity question, can anyone
confirm that the configuration
>  > data for the Nordic nRF2401 is clocked in most significant byte
first?
>  > (I know it's MSB first, but the docs are unclear as to the order
of the
>  > bytes.)
>
>  I've used the part, but don't have an answer to hand, as
I'm still not
>  in front of my main machine, and won't be for a few more days yet.
I'd
>  ask Kris, he'll have an answer for you I'm certain.

Once again, thanks for throwing in your help. Turns out for those interested, 
it is clocked in highest byte first, MSB first. Also the default SPI clock 
timing is incorrect for the chip, you need to offset the clock signal so your 
positive transitions occur mid-data. 

My other problem which took me a while at the o-scope to realize was that when 
the SPI transmit flag is set, that only means that the data is done being 
transfered into the TX buffer, it does not mean that the data has completed 
the actual transfer. So I was bringing the CE pin on the transceiver back 
down before the data was done getting to it. *sigh* A short pause fixed that, 
but I was wondering if anyone had a better way to deal with that problem? 

-Micah 


Micah Stevens wrote:
> 
>> > I understand you guys down below are a little behind the times in
slang,
>> > but you can't blame me for that. ;)
>>
>> Oh I'm well aware of the slang, we hear it all on imported TV all
the
>> time. It's just that I refuse to descend to the level of intellect
that
>>   reverts to imbecilic slang to fit some street thug proto image. ;?}
>>
>> No offence to you. I just can't believe that the US has descended
so far
>> intellectually that once respected TV presenters are now reduced to a
>> vocabularly that revolves around aaaaight, word and other meaningless
>> vocal farts.
> 
> 
> Haha.. most of the 'proper' english language we speak today was
once only the 
> realm of the common street thug.. Either that, or stolen from someone elses

> language. Or both. 

Language, thankfully is alive and growing, English primarily derives 
from latin, which, of course, came with influences from all the nations 
the squashed on the way there. English picked up a strong Saxon 
influence after the Romans left around the 5th century, and also 
rediscovered much of its Celtic heritage. English appeared to change 
little throughout the 'dark ages', although it is difficult to tell, 
since the written language was still primarily latin.  In 1066 the 
French became the last people to beat us up at a home game, (in fact 
they weren't truly French, but 'Normans', descendants of Britains
who 
had fled the Saxon purges) they also influenced the lagunage strongly. 
However since their language was largely a compote of the same origins 
as English, the changes were not quite as great they might have been. I 
would probably understand enough English, as spoken since the 13th 
century, to be able to communicate reasonably. The language has grown 
some, but the base has remained fairly consistent. Technological change 
has added much to the language, and much has been lost through outdated 
technology and customs. Much has been added to the language during our 
Empire building forays, but proportionally, only a very tiny amount of 
this change has been due to a descent into illiteracy. The most common 
type of change due to 'lower class' influence (not an ideal, simply a 
reference) has been the combining and contraction of words.

> 
> By using the words, I'm not defending the stance of the lesser
educated, but I 
> do think they are really good at coming up with monosyllabic utterances
that 
> often fit the bill.

aaiight sounds like a descent into neanderthal protospeech. I've yet to 
figure out if it means "shit the bugger bit me!", or "Dad I got
the 
bastard, we eat now", "God was I ever constipated." or, perhaps,
damn, 
who farted in the lift?"

Don't take me too seriously, I'm just having some fun ;@}

Al


>  aaiight sounds like a descent into neanderthal protospeech. I've
yet to
>  figure out if it means "shit the bugger bit
me!", or "Dad I got the
>  bastard, we eat now", "God was I ever constipated." or,
perhaps, damn,
>  who farted in the lift?"

I find it just a good way to drop a syllable from alright.. I hate those nasty 
mid-word two-consonant syllable breaks.. 

-M


Micah Stevens wrote:

>> aaiight sounds like a descent into neanderthal
protospeech. I've yet to
>> figure out if it means "shit the bugger bit me!", or
"Dad I got the
>> bastard, we eat now", "God was I ever constipated." or,
perhaps, damn,
>> who farted in the lift?"
> 
> 
> I find it just a good way to drop a syllable from alright.. I hate those
nasty 
> mid-word two-consonant syllable breaks.. 

I understand now! So ultimately the language becomes amazingly 
efficient. every word sequence that starts with 'a' and ends with
ight, 
or ite, becomes contracted to just a single word "aight", of course
this 
helps with maths as well, since, in many regional accents this is also 
the nu'er that co'es a'er s'en and b'ore nine. :@}

Al

> 
> -M
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


>  I understand now! So ultimately the language
becomes amazingly
>  efficient. every word sequence that starts with 'a' and ends
with ight,
>  or ite, becomes contracted to just a single word "aight", of
course this
>  helps with maths as well, since, in many regional accents this is also
>  the nu'er that co'es a'er s'en and b'ore nine.
:@}
>
>  Al

Well, keep in mind that it's not an infinite regression. You can only
compress 
data so far, beyond which at a certain point it no longer contains any of the 
original message. So there is a social understanding of the meaning of the 
contraction that contains the data. You cannot assume that it corresponds to 
every word that starts with a and ends with aight. 

Through social interaction the mind learns the context of the contraction. 
;)
-Micah 

So preservation of the english language now becomes a good excuse to be 
anti-social. :@}

More seriously, many years ago when I first started working on voice 
codecs I developed a rather odd voice compression method, and, in a 
series of experiments, over 3 years, eventually increased the 
compression ratio such that a 16 bit recording, at 8000sps (128000 bits 
per second) reduced to 600 bits. I was told (by a whole bunch of faculty 
at melbourne university) that it was impossible to reduce data this far 
and still retain intelligence that would still enable the content to be 
clear. So I demonstrated it to them. Not only was the speech clear 
enough to be easily intelligible, but you could readily recognise the 
speaker as well. Sure it echoed, had a few pure sinusoidal artifacts, 
and clicks and pops, but it went to show that theory is only that, until 
someone proves or disproves it. Just to grandstand a little I reduced it 
still further. It got a bit messy, like listening under a shower, but 
even at 300bps you could make out the original data.

So, when someone tells me you can only reduce something so far I remain 
skeptical until I've failed.

Al

Micah Stevens wrote:
> 
>> I understand now! So ultimately the language becomes amazingly
>> efficient. every word sequence that starts with 'a' and ends
with ight,
>> or ite, becomes contracted to just a single word "aight", of
course this
>> helps with maths as well, since, in many regional accents this is also
>> the nu'er that co'es a'er s'en and b'ore nine.
:@}
>>
>> Al
> 
> 
> Well, keep in mind that it's not an infinite regression. You can only
compress 
> data so far, beyond which at a certain point it no longer contains any of
the 
> original message. So there is a social understanding of the meaning of the 
> contraction that contains the data. You cannot assume that it corresponds
to 
> every word that starts with a and ends with aight. 
> 
> Through social interaction the mind learns the context of the contraction. 
> ;)
> -Micah 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



The 2024 Embedded Online Conference