This content has been marked as final. Show 12 replies
And the cause was?
Connecting Tx to an output?
Hello. Let you show Today's Strangeness
To probe the UART signal, It is too fast.
I want to get 9,600bps UART signal but It seems 1,562,500bps
Actual bit period is measured 640ns.
My thought is SysClock=24MHz, VC1=24/12=2MHz, VC3=2000/26=77KHz
Channel 2 is actual VC3 pulse.
What was wrong?
Whatelse wrong setting?
uart11.jpg 108.0 K
Aha, Dana-san thanks to informative page,
I got a cause.
Clock synchronize setting of UART was set to "Use SysClk Direct"
This is bad.
Data Sheet said...
Use when a 24 MHz (SysClk/1) clock is desired.
This does not actually perform synchronization
but provides low-skew access to the system clock itself.
If selected, this option overrides the setting of the Clock parameter, above.
It should always be used instead of VC1, VC2, VC3 or Digital Blocks
where the net result of all dividers in combination produces a 24 Mhz output
SysClock override all digital block and VC1-3
I can't understand what is use for this setting.
Other synchronize option are all OK.
To pass constant char address is bad.
It seems a random data or random address was pass through
On 8C21434, that have 512Byte SRAM (Large memory model)
Enable paging option and
Treat const as RAM option not for help
Do you think what is wrong?
static char buf;
void SubTest( const char* str )
//... cstrcpy( buf, "TEST" ); <--- this is good
... cstrcpy( buf, str ); <--- this is BAD
... UART_Send( buf ); <--- think like as LCD_PrString();
... SubTest(" Test "); <--- call from here
That was not occur on another device, ever
C24223 (small memory model)
I have to correct previous post (Last 04 Oct)
This trouble happen every PSoC1 devices
C21434, C24233, C27433 also C29466
It seems, might be ImageCraft compiler/Linker Bug.
I have a new evidence
I have update the compiler,
V7.05 to V8.05 Pro-DEMO (What's DEMO??)
but nothing for help ... orz
Oh! I got a progress
I had overlooked the small warning message.
It seems to affect the reference of a constant-character decisively.
So on, I can work it out.