Search found 29 matches

by Flouch
Thu Feb 14, 2013 11:21 pm
Forum: General Programming
Topic: SPI reading
Replies: 1
Views: 2203

SPI reading

HI, i try to read some register in SPI, the problems is i always got 255 in value in my LCD (not in simulation). Whereas when I look at the oscilloscope my slave is sending the data i need. My problems is i can't do something with this data like my PIC don't understand. http://i46.tinypic.com/2u53qk...
by Flouch
Fri Feb 08, 2013 10:38 am
Forum: General Programming
Topic: Convert Hex to dec
Replies: 5
Views: 4614

Re: Convert Hex to dec

Hello.I see - I think the data sheet is a little unclear here. The value is already a decimal - Twos-compliment is the format that most processors store their integers in now. If I were you I would just skip this step and see if this works for your results, as I am unsure as to why a data sheet wou...
by Flouch
Thu Feb 07, 2013 11:25 pm
Forum: General Programming
Topic: Convert Hex to dec
Replies: 5
Views: 4614

Re: Convert Hex to dec

Good evening. When a number is a string you can represent it as hex or decimal for display purposes. When a number is stored as an integer it has no base - hex or decimal, it is the same thing. What is it you need to do the conversion for? Jonny Hi thanks for answer i need to do this programs (a pa...
by Flouch
Thu Feb 07, 2013 8:04 pm
Forum: General Programming
Topic: Convert Hex to dec
Replies: 5
Views: 4614

Convert Hex to dec

Hi,
i work on flowcode V5 and i don't know how to convert a value from hexadecimal to decimal. I saw this function NumberToHex$() but no the reverse.
Thanks
Flouch
by Flouch
Sun Dec 02, 2012 3:07 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

The SPI interface on the MCU must be configured to operate in master mode. The Clock phase should be configured so that data is centered on the first positive going edge of the SCLK period and the polarity should be chosen so that the SCLK line is low in idle state. I have told you about these info...
by Flouch
Sun Dec 02, 2012 12:52 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Ok i have found the solution, in fact is in the programme. In spi we got 1 bit for the R/W 1 for the burst and 6 for the data
http://www.ti.com/lit/an/swra112b/swra112b.pdf
here the informations if this can help someone else
by Flouch
Sat Dec 01, 2012 11:08 am
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Thanks again for you're help, i'm stuck at this point because i don't know if it's my board who have a problem (the board to isolate the 3V to the 5V) or the flowcode program..
by Flouch
Fri Nov 30, 2012 8:29 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Hi Another issue you can check..idle state of the clock pulse (SCK) and in which edge clock works. Sometimes in SPI it causes the problem. You will get those information in the property of the component. I am looking if the clocks are synchronized (same frequency)? thanks again for help me but at t...
by Flouch
Fri Nov 30, 2012 8:07 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

i think i got a problem in the board i had develop to isolate the 3.6V and the 5V... Can you please tell what the problem is? i think i have a problem with my schematic http://i46.tinypic.com/2j4x53t.png maybe is not good or my resistance pull-up to low (2Kohms) when i just plut my board to the led...
by Flouch
Fri Nov 30, 2012 8:03 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Enamul wrote:That seems fine.
thanks, but i think i got a problem in the board i had develop to isolate the 3.6V and the 5V...
by Flouch
Fri Nov 30, 2012 5:33 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

what do you think of the program bellow ? write something with SPI and read the information
by Flouch
Fri Nov 30, 2012 5:23 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

ok so i have understand how to read a register : 1 enable communcation (SS), send witch register we want to read 1byte and finally receive the information in 1 byte. and i guess to write something in register we do the same like : enable commucation (ss) and we send two byte : 1 for the register oth...
by Flouch
Fri Nov 30, 2012 5:06 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Benj wrote:Here is a basic example to read an 8-bit DAC.
so with this example i get a char ( so 1byte) and the led is to select the slave right ?
how the slave can know witch register i want to read ?

and i have two pin for the SPI : DAC pin and NVM pin it's like MOSI ans MISO ?
by Flouch
Fri Nov 30, 2012 4:34 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Benj wrote:Hello,

You simply pop in you old license key when buying the new version and it should work out the correct discount for you.

Let me know and I will put the example together for you.
i have already done i just uninstal my home version ! now i have the tools.
i'm ready
thanks again to take times
by Flouch
Fri Nov 30, 2012 3:28 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Hello, The SPI component will simulate but when you go to compile to C code the C functions will be missing. You can upgrade a home license to a pro license by simply paying the difference between the versions. You can do all this via the form on the main Flowcode page. http://www.matrixmultimedia....
by Flouch
Fri Nov 30, 2012 3:08 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Hello, Sorry but the Student / Home version doesn't support the SPI component. Only the Pro or Site license versions will allow you to compile code for this component and the other advanced components. hmm strange i can use SPI in my student version, Can iupdate to the pro version ? in not student ...
by Flouch
Fri Nov 30, 2012 2:44 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Benj wrote:Hello,

Your English is great, please could you tell me which version of Flowcode your using?
thanks
flowcode student version V5.4.0.0
by Flouch
Fri Nov 30, 2012 1:15 pm
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

Re: SPI help

Hello, Yes I would like an example because I do not understand everything, My project is to configure a receiver-transmitter (transmitter). So I have to configure different register (frequency etc) documentation page 58 below. http://www.ti.com/lit/ds/symlink/cc2500.pdf And after I have read some re...
by Flouch
Fri Nov 30, 2012 11:16 am
Forum: General Programming
Topic: SPI help
Replies: 28
Views: 12133

SPI help

I just started the SPI Flowcode and I do not understand how to configure the pins: SCLK, MOSI, MISO, SS. IN fact I only have pins and DAC NVM. My goal is simply to write in registers and read SPI register. If someone has an example
cordially

edit i work on the board EB006 i need other Eblock ?
by Flouch
Wed Nov 14, 2012 4:08 pm
Forum: General Programming
Topic: SPI
Replies: 16
Views: 8102

Re: SPI

hi, Someone have an idea or know a µc to use SPI ?
thanks
by Flouch
Wed Oct 24, 2012 10:13 am
Forum: General Programming
Topic: SPI
Replies: 16
Views: 8102

Re: SPI

Enamul wrote:Hi,
I told you to have a look but this datasheet is too long to follow in short time..
hi,
ok sorry thanks again
by Flouch
Wed Oct 24, 2012 9:43 am
Forum: General Programming
Topic: SPI
Replies: 16
Views: 8102

Re: SPI

i don't understand how read the different register to know the strength of the signal of this http://www.farnell.com/datasheets/47796.pdf, and i don't understand what initialized in this component
by Flouch
Thu Oct 18, 2012 3:35 pm
Forum: General Programming
Topic: SPI
Replies: 16
Views: 8102

Re: SPI

thanks !
by Flouch
Thu Oct 18, 2012 1:54 pm
Forum: General Programming
Topic: SPI
Replies: 16
Views: 8102

Re: SPI

Oh thanks was that, you saved my day^^ thanks again to you and enamul for this help.
Enamul if you still want to help me to code this i will accept it ( to coding and the choice of the pic)
by Flouch
Thu Oct 18, 2012 12:05 pm
Forum: General Programming
Topic: SPI
Replies: 16
Views: 8102

Re: SPI

My rf is http://www.ti.com/lit/ds/symlink/cc2500.pdf and I must read the register to know the strength of the signal. and i to have choose my pic yet. But my question is i don't understand how to use SPI in flowcode as you see when i use SPI to send a byte like 100 flow say me "character sent d". In...