<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>LPC2368 on Tuxotronic</title>
    <link>https://tuxotronic.org/tags/lpc2368/</link>
    <description>Recent content in LPC2368 on Tuxotronic</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ru</language>
    <lastBuildDate>Tue, 28 Oct 2008 00:00:00 +0300</lastBuildDate><atom:link href="https://tuxotronic.org/tags/lpc2368/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LPC2368 SSP init as SPI</title>
      <link>https://tuxotronic.org/wiki/snippets/lpc2368-ssp-init-as-spi/</link>
      <pubDate>Tue, 28 Oct 2008 00:00:00 +0300</pubDate>
      
      <guid>https://tuxotronic.org/wiki/snippets/lpc2368-ssp-init-as-spi/</guid>
      <description>void sspInit(void) { // SSP1 (SPI) init sequense  PCONP |= (1&amp;lt;&amp;lt;10); // PCSSP1 - power on  PINSEL0 |= (2&amp;lt;&amp;lt;(7*2)) | (2&amp;lt;&amp;lt;(8*2)) | (2&amp;lt;&amp;lt;(9*2)) | (2&amp;lt;&amp;lt;(6*2)); // configure SPI1 pinouts  // Serial Clock Rate: PCLK/CPSDVSR  SSP1CR1 = 0x0 ; // disable SSP, must be off during changes  SSP1CR0 = (8-1); // | (1&amp;lt;&amp;lt;6) /* CPOL */ | (1&amp;lt;&amp;lt;7) /* CPHA */; // | SSP_CR0_CPOL | SSP_CR0_CPHA; // DataSizeSelect=8, CPOL=1,CPHA=1  SSP1CPSR = 8; // SPICLK = PCLK/8 = 18MHz/8 = 2.</description>
    </item>
    
    <item>
      <title>LPC2368 UART init</title>
      <link>https://tuxotronic.org/wiki/snippets/lpc2368-uart-init/</link>
      <pubDate>Tue, 28 Oct 2008 00:00:00 +0300</pubDate>
      
      <guid>https://tuxotronic.org/wiki/snippets/lpc2368-uart-init/</guid>
      <description>void uartInit(unsigned long baudrate) { /*------------------------------------------------ Setup serial port registers. ------------------------------------------------*/ PCONP |= (1&amp;lt;&amp;lt;3); // PCUART0 UART0 power/clock control bit.  PINSEL0 |= (1&amp;lt;&amp;lt;(2*2)) | (1&amp;lt;&amp;lt;(2*3)); /* Enable TXD0, RXD0 */ U0LCR = 0x03; /* 8 bits, no Parity, 1 Stop bit */ U0IER = 0; /* Disable UART1 Interrupts */ U0FCR = 0x07; unsigned long DLreload; DLreload = ((Fpclk / 16UL) + (baudrate-1)) / baudrate; U0LCR |= 0x80; /* Set DLAB */ U0DLL = DLreload; U0DLM = (DLreload &amp;gt;&amp;gt; 8); U0LCR &amp;amp;= ~0x80; /* Clear DLAB */ } char uartGetc(void) { while (!</description>
    </item>
    
  </channel>
</rss>
