I have noticed that when ever a lowercase character is sent to the UArtx
and then read either by Uartx_Read_char OR Uartx_Read_Text(....)
the character get converted to Uppercase ? has anyone else noticed this and if so do you happen to know why?
Uart converts character case
Uart converts character case
Thank You for your help
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
Hi kingGrey,
I've never seen this before.
Anton
Can you please tell us which chip your are using and maybe paste some demo code that you used.I have noticed that when ever a lowercase character is sent to the UArtx
and then read either by Uartx_Read_char OR Uartx_Read_Text(....)
the character get converted to Uppercase ?
I've never seen this before.
Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
I am using dspic33FJ128GP708,
Code: Select all
if Uart2_Data_Ready() = 1 then
Uartx_Read_Text(txt,delim)
Uartx_write_Text(txt) <---- txt is usually upper case
end if
Thank You for your help
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
Hi kingGrey,
What terminal program do you use on the PC? Are you sure it isn't the terminal?
Anton
What terminal program do you use on the PC? Are you sure it isn't the terminal?
Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
I am using the terminal program called Real term, it just awkward that it converts to upper Case.. but I will do some more research into the matter.
Thank You for your help
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
Hi kingGrey,
What happens when you send numbers? Do you get the number back or another character?
Anton
What happens when you send numbers? Do you get the number back or another character?
Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
Hi anton
when numbers are sent they do appear as numbers, but for some reason in the case for the alphabets, they choose to display as uppercase.. it could be something else that I might be doing...
thanks for your help, I appreciate it.
when numbers are sent they do appear as numbers, but for some reason in the case for the alphabets, they choose to display as uppercase.. it could be something else that I might be doing...
thanks for your help, I appreciate it.
Thank You for your help
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
An expert is a man who has made all the mistakes which can be made, in a narrow field.
http://www.stevenswater.com/catalog/stevensProductdl3000.aspx?SKU=%2793750%27
Hi kingGrey,
The reason why I asked if you get a number back when you sent a number is, take for instance 'a' with ASCII value 97. When you receive this you say you get 'A' back with ASCII value 65. There is exactly 32 difference between them or binary %00100000. This is for all the characters, telling me that bit 5 doesn't get set some times.
Please have a look at your crystal and BAUD rate again.
Anton
The reason why I asked if you get a number back when you sent a number is, take for instance 'a' with ASCII value 97. When you receive this you say you get 'A' back with ASCII value 65. There is exactly 32 difference between them or binary %00100000. This is for all the characters, telling me that bit 5 doesn't get set some times.
Please have a look at your crystal and BAUD rate again.
Anton
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
Hi, this may seem perhaps a stupid question to you: what happens when you send e.g. "g" with your terminal program? Is it translated to "G" or does something else happen?kingGrey wrote:when numbers are sent they do appear as numbers, but for some reason in the case for the alphabets, they choose to display as uppercase.. it could be something else that I might be doing...
Another question: what is the behaviour when using the built in (in the compiler) "UART Terminal" program? Is the behaviour also wrong?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)