S12XE SCI Error Rate

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12XE SCI Error Rate

Jump to solution
1,742 Views
Luna_Maverick
Contributor I

Hello,
I am a developer developing with XET256 MCU.

I am considering whether I should communicate using SCI or SPI.

I want to use SCI.

I want the SCI Baud Rate to use 500kbps.

Below are the PLL clock settings I set.
Internal bus clock: 32Mhz
VC0 clock frequency: 64Mhz
Reference divider: 1
PLL multiplication factor: 2
PLL post divider: 1

and IREN : 0

I looked at the MC9S12XEP100 Reference Manual Covers MC9S12XE Family datasheet.

I have Table 20-16 on page 742 of the datasheet. I would like to know the formula for calculating the Error (%) value in Baud Rates (Example: Bus Clock = 25 MHz).

Luna_Maverick_0-1715671496521.png

Please tell me how to get Baud Rates Error.

And please tell me what the error rate is for 500kbps in my specs.

Luna_Maverick_1-1715671400359.png

 

thanks.

Tags (4)
0 Kudos
Reply
1 Solution
1,722 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

1) Attached...contains also required calculations and formula for UART -  I think it is usable without additional words. (Only change green cells, and button Summarize results)

2) https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-PLL-Filter-Calculator/ta-p/1125313

Best regards,

Ladislav

 

View solution in original post

0 Kudos
Reply
1 Reply
1,723 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

1) Attached...contains also required calculations and formula for UART -  I think it is usable without additional words. (Only change green cells, and button Summarize results)

2) https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-PLL-Filter-Calculator/ta-p/1125313

Best regards,

Ladislav

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1865066%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES12XE%20SCI%20Error%20Rate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1865066%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3EI%20am%20a%20developer%20developing%20with%20XET256%20MCU.%3C%2FP%3E%3CP%3EI%20am%20considering%20whether%20I%20should%20communicate%20using%20SCI%20or%20SPI.%3C%2FP%3E%3CP%3EI%20want%20to%20use%20SCI.%3C%2FP%3E%3CP%3EI%20want%20the%20SCI%20Baud%20Rate%20to%20use%20500kbps.%3C%2FP%3E%3CP%3EBelow%20are%20the%20PLL%20clock%20settings%20I%20set.%3CBR%20%2F%3EInternal%20bus%20clock%3A%2032Mhz%3CBR%20%2F%3EVC0%20clock%20frequency%3A%2064Mhz%3CBR%20%2F%3EReference%20divider%3A%201%3CBR%20%2F%3EPLL%20multiplication%20factor%3A%202%3CBR%20%2F%3EPLL%20post%20divider%3A%201%3C%2FP%3E%3CP%3Eand%20IREN%20%3A%200%3C%2FP%3E%3CP%3EI%20looked%20at%20the%20MC9S12XEP100%20Reference%20Manual%20Covers%20MC9S12XE%20Family%20datasheet.%3C%2FP%3E%3CP%3EI%20have%20Table%2020-16%20on%20page%20742%20of%20the%20datasheet.%20I%20would%20like%20to%20know%20the%20formula%20for%20calculating%20the%20Error%20(%25)%20value%20in%20Baud%20Rates%20(Example%3A%20Bus%20Clock%20%3D%2025%20MHz).%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luna_Maverick_0-1715671496521.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luna_Maverick_0-1715671496521.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278601i96FA1DDAA95991E1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luna_Maverick_0-1715671496521.png%22%20alt%3D%22Luna_Maverick_0-1715671496521.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EPlease%20tell%20me%20how%20to%20get%20Baud%20Rates%20Error.%3C%2FP%3E%3CP%3EAnd%20please%20tell%20me%20what%20the%20error%20rate%20is%20for%20500kbps%20in%20my%20specs.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luna_Maverick_1-1715671400359.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luna_Maverick_1-1715671400359.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278599iA04A80CD50E08FF0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luna_Maverick_1-1715671400359.png%22%20alt%3D%22Luna_Maverick_1-1715671400359.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1865230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S12XE%20SCI%20Error%20Rate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1865230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E1)%20Attached...contains%20also%20required%20calculations%20and%20formula%20for%20UART%20-%26nbsp%3B%20I%20think%20it%20is%20usable%20without%20additional%20words.%20(Only%20change%20green%20cells%2C%20and%20button%20Summarize%20results)%3C%2FP%3E%0A%3CP%3E2)%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS12-MagniV-Microcontrollers%2FS12X-PLL-Filter-Calculator%2Fta-p%2F1125313%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS12-MagniV-Microcontrollers%2FS12X-PLL-Filter-Calculator%2Fta-p%2F1125313%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ELadislav%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E