Hi,
I'm using Bascom too, but I don't know how to synchronize the siteplayer with
the atmega16, I'm using the command print chr(192), another question, it's
necessary send 20 nulls characters before the communication begin...? and these
characters Should be send always before each transmission? or only the first
time? the siteplayer answers with characters ascii or hexadecimal?
Thanks,
--- In siteplayer@yahoogroups.com, Claude Metzger <metzgerclaude@...> wrote:
>
>
>
> Hi,
>
>
>
> I'm using also the siteplayer with an atmel microcontroller.
>
> You have to send character strings to the siteplayer. I don't know which
programming software if you are using for your ATMega chip, I'm using Bascom
basic compiler. With bascom you have to issue a "print chr(192)" command to send
effectively a C0 hex byte. No spaces or wathever between characters
>
> Check this an give me your results !
>
>
>
>
>
> Regards,
>
> Claude
>
>
> ----- Mail Original -----
> De: "leandro8502" <leandro8502@...>
> À: siteplayer@yahoogroups.com
> Envoyé: Lundi 29 Juin 2009 23:50:40 GMT +01:00 Amsterdam / Berlin / Berne /
Rome / Stockholm / Vienne
> Objet: [siteplayer] Re: please someone can help me???
>
>
>
>
>
>
>
>
> --- In siteplayer@yahoogroups.com , Rusty Haddock <rusty@> wrote:
> >
> > leandro8502 wrote:
> > >I'm doing my thesis using this device "siteplayer", but I have
> > >problems with the synchronization with another microcontroller
> > >this is Atmega 16, I cant read the value in the memory of the siteplayer.
> > >first Im sending 20 nulls character, next I send the number of the
> > >instruction in hexadecimal, and finally send the locality number,
> >
> > Are you using the development board or just the module?
> >
> > What do you mean by 'send the number of the instruction in hexadecimal' ??
> >
> > Hexadecimal, like decimal, is simply a written representation. For the
> > read command you should be sending to the Siteplayer a single byte
> > (8-bits) with the value of 192 plus the number of bytes you want to
> > read less 1. For example, to read three bytes at address 15 you send
> > two bytes with the following values:
> >
> > 194 # 192 + (3-1)
> > 15
> >
> > Naturally, you should be sending these bytes at the proper serial bit-rate
> > so that the Siteplayer will understand your ATmega16. The default serial
> > rate is 9600-bps.
> >
> > >and I wait for the siteplayer response but nothing happen...
> > >someone can help please it's urgent...
> > >I'm stuck in my thesis almost two months for this problem
> >
> > -Rusty-
> > --
> > _____ Rusty Haddock <=> AE5AE
> > |\/ o \ o Way out yonder in the
> > | ( -< O o Van Alstyne (TX) Metropolitan Area
> > |/\__V__/ Math illiteracy affects 7 out of 5 people!
> >
> first, thanks for your answer.... but I still have the same problem...
>
> I'm using only the module, and I'm working with atmega 16 at 9600 bps.
> and I want to read only one byte for this reason the number that I sent was
192 and next I sent the number of the locality, but these numbers I sent in
hexadecimal... although the siteplayer don't response....
> help me PLEASE...!!!
> OR is possible send the numbers in decimal? another question the number should
send separated by intros or followed without spaces?
> I'm doing this:
> first send 20 nulls characters
> next send the C0(hex)(192 decimal)it`s the number of the instruction to read
only one byte
> and finally I send the number of the locality that is 05(hex)
> later I wait for the siteplayer response but nothing happen..!!
>
>
>
>
> [Non-text portions of this message have been removed]
>