From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!feed.news.qwest.net!mpls-nntp-03.inet.qwest.net!216.196.98.145.MISMATCH!border4.nntp.dca.giganews.com!backlog4.nntp.dca3.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 28 Aug 2014 08:10:09 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: STM32F4 Discovery, communication and libraries Date: Thu, 28 Aug 2014 09:10:40 -0400 Organization: IISS Elusive Unicorn Message-ID: <8j9uv9522up01e6v8773pon9c1v1nmjtvv@4ax.com> References: <60a42dc6-d8d0-4432-ae5a-86de18b82840@googlegroups.com> <5kkrv9hejn2qhdckkeo8lidkbh3bkme1gn@4ax.com> <5b91313c-acf9-4a6e-b157-6ba7c8021567@googlegroups.com> <0513ad07-6fbe-463a-be6f-097cd5113f52@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 76.249.17.108 X-Trace: sv3-2AMI6FMbGdqCl0cogI+pMh7SVSDiqmVhrfgo1MDlpeEJtumdYWTyqsPxvOCcGm2N+E1zNk8Mslk+X7s!S3DlG+Slyuj3XSz2QYaRcFFGsNulypwCF8JQrsgUX5jrS6aeWs1tuqrGap2pIacCW+5Arc1BvSA8!C9egEwc8zSHmb0+gqK/4QnouUQ8= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3655 Xref: news.eternal-september.org comp.lang.ada:21947 Date: 2014-08-28T09:10:40-04:00 List-Id: On Thu, 28 Aug 2014 03:12:16 -0700 (PDT), Roy Emmerich declaimed the following: >I want to use a finite state machine (FSM) approach. There will be a supervisor module which will instantiate sub-modules which communicate with peripherals. Each sub-module will be a separate sub-FSM, reporting its state to the supervisor. Each sub-module will make use of a protocol library (e.g. MODBUS RTU) and a hardware driver library (e.g. UART over RS485/232) to communicate with devices. Your supervisor module will, in essence, be a minimal OS if it has to handle switching among the I/O modules while also handling an upper level application vs the "simpler" "direct" approach (if an application wants to send something over a serial port, that is all it is doing until the transaction is complete -- then it can look at some other device; or the devices are all linked to an interrupt handler to collect inbound/transmit outbound data through buffers that the application later reads/writes -- but that needs a protocol to identify when the application layer is allowed to transfer data). They aren't cheap, and for being three volumes in a course sequence, were written such that each duplicates most of the first third (how many people working a microcontroller really need to see how to build a binary full adder circuit from logic gates?) -- they also focus on the Texas Instrument Launchpad boards -- but those are ARM Cortex-M4 so the information should be portable. http://www.amazon.com/Embedded-Systems-Introduction-Cortex-Microcontrollers/dp/1477508996/ref=sr_1_1?ie=UTF8&qid=1409231142&sr=8-1&keywords=valvano http://www.amazon.com/Embedded-Systems-Real-Time-Interfacing-Microcontrollers/dp/1463590156/ref=sr_1_2?ie=UTF8&qid=1409231142&sr=8-2&keywords=valvano http://www.amazon.com/Embedded-Systems-Real-Time-Operating-Microcontrollers/dp/1466468866/ref=sr_1_3?ie=UTF8&qid=1409231142&sr=8-3&keywords=valvano First and third may be the desired pair for your level. As mentioned, the introductory material tends to be duplicated between them. Introduces the ARM Cortex assembly language. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/