Search found 13 matches

by Saran_yim
Fri Jul 01, 2011 11:25 am
Forum: General Support
Topic: chThdSleepMicrosecond question
Replies: 4
Views: 5161

Re: chThdSleepMicrosecond question

Thank you Sir.
by Saran_yim
Fri Jul 01, 2011 10:00 am
Forum: General Support
Topic: chThdSleepMicrosecond question
Replies: 4
Views: 5161

Re: chThdSleepMicrosecond question

stupid question what is GPT Driver?
by Saran_yim
Fri Jul 01, 2011 3:30 am
Forum: General Support
Topic: chThdSleepMicrosecond question
Replies: 4
Views: 5161

chThdSleepMicrosecond question

Hi,

I do simple code in one thread just like this

palSetPad(GPIOB,0);
chThdSleepMicrosecond(50);
palClearPad(GPIOB,0);
chThdSleepMicrosecond(50);

but I cannot get 50 microsec delay but it is always 1 msec
I try with STM8S disocovery and STM32discovery board it is the same behavior.

So any way I ...
by Saran_yim
Wed Feb 02, 2011 10:18 am
Forum: General Support
Topic: Thread and State machine
Replies: 1
Views: 3892

Thread and State machine

Hi,

I have some question

My application is Displayed OBD Data, On my board I have LCD, Switch, and communicate with OBD Reader via UART

So I have create 3 thread + main thread

1st thread is scan for 4 switches
2nd thread handle UART Communication
3rd thread is Display data on LCD 16x2

and in ...
by Saran_yim
Sat Jan 22, 2011 11:16 am
Forum: General Support
Topic: SDRead function
Replies: 3
Views: 6885

Re: SDRead function

Hi Giovanni

I try to use SDRead instead of SDReadTimedOut but the result is the same.

The point is if everything working perfect I will get the correct answer since the first time but in some case it look like there are something left in sd's buffer

I expected to get 3 bytes response and I see ...
by Saran_yim
Fri Jan 21, 2011 10:36 am
Forum: General Support
Topic: SDRead function
Replies: 3
Views: 6885

SDRead function

I'm using STM8 with SD function to send command to another MCU (also STM8) and I wait for response

So I made change on Serial buffer to 64 and I have my arrry buffer (msg_in[80])

my code is like this
clearMSG_in();
sdWrite(&SD2,"2A0\r",4);

sdReadTimeout(&SD2,msg_in,64,500);
if(!strcmp(msg ...
by Saran_yim
Wed Dec 29, 2010 7:06 am
Forum: General Support
Topic: CAN Driver for STM8
Replies: 14
Views: 19453

Re: CAN Driver for STM8

more information

software struct in this loop

do {
cp = cp->p_next;
} while (cp->p_prio >= tp->p_prio);
by Saran_yim
Wed Dec 29, 2010 7:01 am
Forum: General Support
Topic: CAN Driver for STM8
Replies: 14
Views: 19453

Re: CAN Driver for STM8

Hi Braian, Giovanni,

Is there any process in chibi os disable system interrupts?

I have success implement CAN from ST-Lib with Chibi OS at the moment
I need 3 UART in my application and one of them is Software UART base on Timer 4 (with ST-Lib TIM4) because I need 10400 baud rate.

So my ...
by Saran_yim
Thu Dec 23, 2010 10:25 am
Forum: General Support
Topic: CAN Driver for STM8
Replies: 14
Views: 19453

Re: CAN Driver for STM8

thanks Giovanni,

after change TIM2_ARR and ch Frequency to 1000, got correct timing, Thanks

Regarding CAN Driver, I will try to use ST Can lib for the moment. I don't have enough knowledge to make change on your OS ;)

Saran
by Saran_yim
Thu Dec 23, 2010 10:02 am
Forum: General Support
Topic: CAN Driver for STM8
Replies: 14
Views: 19453

Re: CAN Driver for STM8

Sorry for disturbing again.

I could not found interval or something look similar to interval in board.c could you please give me more detail?

Thank you.

saran