Author |
Message |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Tue Nov 11, 2014 1:51 am Subject: vdrive2 speed |
So I've been busy with the VDrive for the past few days.
Although I haven't been able to up the baudrate manually, I did manage to set it higher by modding the .FTD firmware file with software from ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 9:20 am Subject: vdrive2 speed |
My PCW Compiler has recently been updated to Version 5.026.
I've done some googling but no fellow programmers seems to have this issue.
There must be a fault in the code I posted. I'm going to keep ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 8:33 am Subject: vdrive2 speed |
Ttelmah, right now the problem is in the code which sets the baud rate of the VDrive. The moment I set the baudrate by sending the SBD command with the associated putc(), the VDrive freezes. Not only ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 8:01 am Subject: vdrive2 speed |
Hello Jay,
Thanks for your response!
Luckily, there is no need for multiple baudrates in my application. Right now my code works just fine. But 9600 is just too slow, because it takes 12.4ms to wr ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 4:55 am Subject: vdrive2 speed |
Keeping in mind all the requirements needed for high speed bauds, the code is still the problem here.
If I manually set the baudrate to 9600 with the code from my last post, the VDrive still freezes. ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 4:24 am Subject: vdrive2 speed |
Alright, so I moved the set baud rate code. Now it sets the baudrate after the push button is pushed so enough time has passed for the VDrive to initialise the USB and let the green LED show. Now I ca ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 3:53 am Subject: vdrive2 speed |
It is just that if I don't write the new baud rate to the VDrive, then everything works just fine. As soon as the putc(..) is written to the VDrive, it just stops working |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 3:48 am Subject: vdrive2 speed |
I've tried it with the set_uart_speed command as well. Still the VDrive gets stuck and lets the green LED stay on.
Maybe the problem lays with the use of the RTS and CTS pins? In my program the RTS ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Mon Nov 03, 2014 2:44 am Subject: vdrive2 speed |
Read the manual....
set_uart_speed(xxxxx);
Just setup the uart with #use rs232 to use 9600bps.
Print the speed change command to the Vdrive.
putc(0x1A);
putc(0);
putc(0);
Then either j ... |
Topic: vdrive2 speed |
DanielTPE
Replies: 30
Views: 37592
|
Forum: General CCS C Discussion Posted: Wed Oct 29, 2014 10:00 am Subject: vdrive2 speed |
Hello everyone,
I see that you all have struggled with changing the baudrate of the VDrive2.
Now i'm trying to accomplish that as well by setting the baudrate from the standard 9600 to 115k2 baud ... |
|