Download Adjustable LED blinking speed using STM8SVLDISCOVERY
Transcript
Contents AN3996 Contents 1 2 3 2/10 Application description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 Hardware required . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Application schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Application principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Software description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 STM8S standard firmware library configuration . . . . . . . . . . . . . . . . . . . . . 6 2.2 Application software flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2.1 Main loop flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2.2 Blinking_StateMachine flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Doc ID 022386 Rev 1 www.BDTIC.com/ST