Other Parts Discussed in Thread: DRV8301, C2000WARE-MOTORCONTROL-SDK, C2000WARE, DRV8320
Tool/software: Code Composer Studio
Hello,
I'm using DRV 8301 kit for mywork. I want to develop a SCI interface. Please help me with an example. Thank you
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hello,
I'm using DRV 8301 kit for mywork. I want to develop a SCI interface. Please help me with an example. Thank you
hi Teja,
Please take a look at the DRV8301 solution in the C2000WARE-MOTORCONTROL-SDK.
C2000Ware_MotorControl_SDK\solutions\drv8301_hc_c2_kit
The hal.c and hal.h files configure SCIA for echoback in HAL_setupSciA() which can be used as reference.
The hal files here are for the f28004x device but this should be very similar to that needed by the F2803x
Regards.
Thanks a lot for the response. I downloaded the SDK and installed it in my PC. I didnt find any folder related to DRV8301. Also I didnt find hal.c/hal.h.
Does this sdk support my kit drv8301?
hi Teja,
Looks like you are right . It was available in one of the earlier versions of the tool but seems to have been removed now.
Will check internally and get back.
Regards.
hi Teja,
Looks like the example was pulled down and replaced with example for DRV8320 BoosterPack .
MotorControl_SDK\solutions\boostxl_drv8320rs\f28004x\drivers\source should have the same files as was available for the DRV8301.
Also I believe that you are looking some a general SCI example for data communication between the F2803x and another device.
Please refer to the examples on the C2000ware.
C2000Ware\device_support\f2803x\examples\c28\ sci*
Regards.
In one of the test cases, I sent 1 to the controller and when checked (in debug mode) watch variable, the following was displayed (SCIRXBUF):
Name : RXDT
Default:49
Hex:0x31
Decimal:49
Octal:061
Binary:00110001b
Immediatly after reading the SCIRXBUF, it has to be resetted. Instead the RXDT value is as follows:
Name : RXDT
Default:50
Hex:0x32
Decimal:50
Octal:062
Binary:00110010b
But in my hyperterminal, the value 1 got displayed. Can you help me with this. Am I missing something?
Please help.
Thankyou.
Hi Teja ,
Are you checking the sci echoback?
If you are using the echoback example then you are seeing the right results
Since the char "1" in ascii is equivalent to 0x31 in hex and you see "1" on the hyper terminal.
Is there any increment of the buffer data in the code because of which you are seeing the 0x2 in the RX ? or is this the existing example ?
Regard.
Yes, Im checking sci echo. Thanks a lot for the help. Regarding 0x2, I. not incrementing the data. I did not edit the program...
I dono why SCIRXBUF value is not getting reset immediately after reading the data.
Please help and thank you
hi,
Sorry for the delay in response .
Were you able to make progress on this ?
Regards.
I'm still facing the problem with SCIRXBUF. The value is not getting reset immediately after reading data. Kindly help and thankyou
Teja,
The SCIRXBUF does not get cleared or reset after being read; it gets written over when the next character is received. The RXRDY is cleared by a reading of the SCIRXBUF register. Please see the SCI chapter in the F2803x Technical Reference Manual (TRM) for more details.
I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.
- Ken
Teja,
It's been a while since I have heard from you last. Therefore, I am assuming that my last reply resolved your issue and I will close this thread. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue. Thank you.
- Ken