LPC800 SCT Tools

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

LPC800 SCT Tools

664 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by caohua0902@126.com on Tue Mar 05 04:03:35 MST 2013
Which Tools can be used to configure the State Configurable Timer(SCT) of LPC800 ?

I used FSM Design Tools for configurating LPC800 , but it can't work .
The file "test.fzm" just generates files "sct_fsm.c" and "sct_fsm.h" which are used for LPC1800.

Thanks!
Labels (1)
0 Kudos
4 Replies

577 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by caohua0902@126.com on Mon Jun 03 20:36:30 MST 2013

Yeah, great...


<span class="Apple-tab-span" style="white-space: pre;"> </span>I've done it as you said and it worked. thanks.

0 Kudos

577 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by caohua0902@126.com on Mon Jun 03 20:33:18 MST 2013

Hi, TheShed:


<span class="Apple-tab-span" style="white-space: pre;"> </span>Thanks for your reply. I'll try it .


Best wishes.

0 Kudos

577 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JoeHale on Mon May 13 09:44:15 MST 2013

Hi,


The latest release of LPCXpresso ships with the<strong> Red State tool</strong> which provides support for the SCT on the LPC800. LPCXpresso is a free download: http://lpcxpresso.code-red-tech.com/LPCXpresso/ 


You need to create the SCT config in an existing project. If you don't have a project in LPCXpresso, just create a new 'General' project:


<ul>
<li><strong>File</strong> -&gt; <strong>New</strong> -&gt; <strong>Project</strong> -&gt; <strong>General</strong> -&gt; <strong>Project</strong></li>
</ul>

Next, to create a new SCT configuration, run the state machine wizard:


<ul>
<li><strong>File</strong> -&gt; <strong>New</strong> -&gt; <strong>Other</strong> -&gt; <strong>Red State</strong> -&gt; <strong>Red State Machine file generator</strong></li>
<li>Select the project to create the SCT configuration in and enter a file name. </li>
<li>Press <strong>Next</strong></li>
<li>Check that the <strong>LPC8xx</strong> is selected as the target and hit <strong>finish</strong>.</li>
</ul>
<div>Check out the built-in help for more information about how to use the Red State tool :</div>
<div>
<ul>
<li><strong>Help</strong> -&gt; <strong>Help Contents</strong> -&gt; <strong>Getting Started with Red State</strong></li>
</ul>
</div>
<div>Cheers<strong>,</strong></div>
<div>Joe</div>
0 Kudos

577 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheShed on Thu Mar 07 15:05:17 MST 2013
The FSM Design Tools can be used, but, like everything else NXP have done for the LPC8xx, its just a little bit broke...

First you ignore the line at the top of sct_fsm.c that says 'DO NOT EDIT!'
you then comment/remove:
  OUT[4] to OUT[15] (lines 35:58),
  EVENT[6] to EVENT[15] (lines 75:84) and
  DMA0/1 (lines 106:107)

It should then work as expected.
You also have to be aware that the SCT in the LPC8xx is a very cut down version and most of the examples provided with the FSM Design Tools use more resources than are available on the LPC8xx.

The annoying part about the Tool brokeness is that the .inc and subsequent .smd files actually specify the number of outputs and events available but the back-end parser seems to ignore this!
Extra annoying is that the source code for everything is provided *except* the broken parser!  so if someone from NXP would like to reveal the source code I'm sure it wouldn't take too long to fix.

-- enjoy!

0 Kudos