Difference: ChaseLighting (3 vs. 4)

Revision 42017-12-17 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 9 to 9
 

Chase Lighting (Elf Membership Card test program)

Added:
>
>
                        
                ORG     0H
                        
   0000   c0:11000000           LBR     MOVE
   0001   00:00000000
   0002   03:00000011
                        
      MOVE
   0003   e3:11100011           SEX     R3              ; index register R3 for bit pattern point to 30H
   0004   90:10010000           GHI     R0              ; PC high byte is 0
   0005   b3:10110011           PHI     R3
   0006   f8:11111000           LDI     30H
   0007   30:00110000
   0008   a3:10100011           PLO     R3
                        
   0009   f8:11111000           LDI     00000001B       ; bit pattern to move in (0030H)
   000a   01:00000001
   000b   53:01010011           STR     R3
      LOOP
   000c   64:01100100           OUT     P4              ; Rx = 0030H, INC Rx
   000d   6c:01101100           INP     P4              ; get switches Rx =0031H
   000e   23:00100011           DEC     R3              ; Rx = 0030H
   000f   fa:11111010           ANI     11111110B
   0010   fe:11111110
   0011   3a:00111010           BNZ     LEFT
   0012   1a:00011010
      RIGHT
   0013   f0:11110000           LDX                     ; get pattern
   0014   f6:11110110           SHR
   0015   c7:11000111           LSNF
   0016   f8:11111000           LDI     10000000B   
   0017   80:10000000
   0018   30:00110000           BR      STORE
   0019   1f:00011111
      LEFT
   001a   f0:11110000           LDX                     ; get pattern
   001b   fe:11111110           SHL
   001c   c7:11000111           LSNF
   001d   f8:11111000           LDI     00000001B
   001e   01:00000001
      STORE
   001f   53:01010011           STR     R3
                        
   0020   f8:11111000           LDI     20
   0021   14:00010100
   0022   b2:10110010           PHI     R2              ; R2 wait counter
      WAIT
   0023   22:00100010           DEC     R2              ; wait loop about 0.5 s
   0024   92:10010010           GHI     R2
   0025   3a:00111010           BNZ     WAIT
   0026   23:00100011
                        
   0027   c5:11000101           LSNQ                    ; toggle Q
   0028   7a:01111010           REQ
   0029   38:00111000           NBR     7bH             ; SEQ 
   002a   7b:01111011
                                        ;SEQ
   002b   30:00110000           BR      LOOP
   002c   0c:00001100
                        
                END
 

Copyright

Line: 108 to 171
 
Deleted:
<
<

MCU MK22DX256VLF5

  • Data sheets
  • Features
    • Core ARM Cortex M4, 50 MHz
    • Run mode current 17 mA, wait 8 mA
    • A/D Converter - Bits (bit) 16
    • Additional Features Vref
    • Ambient Operating Temperature (Min-Max) (°C) -40 to 105
    • Analog Comparator 2
    • Cache (kB) 0
    • Debug Features JTAG, Serial Wire Debug, cJTAG
    • EEPROM (kB) 4
    • External Bus Interface n/a
    • FlexMemory (KB) 64
    • I/O Pins 29
    • Independent ADC modules 1
    • Internal Flash (kB) 256
    • Internal RAM (kB) 32
    • Max Simultaneous ADC channels 1 DP14 SE
    • Pulse Width Modulators - Channels 10
    • Sample Exception Availability Y
    • Serial Interface - Number of Interfaces 4
    • Serial Interface - Type UART, SPI, I2C, I2S
    • USB OTG LS/FS
    • Supply Voltage (Min-Max) (V) 1.71 to 3.6
    • Timer type Low Power Timer, Periodic Interrupt Timer, Programmable Delay Block
    • Total DMA Channels 16
    • Total Flash memory (kB) 320
    • LQFP-48

The MK20DX128VLF5 can also be used, but the memory footprint (Flash and RAM) has to be reduced. The MKL27Z256VFT4 would be an excellent alternative (build-in bootloader, 8 mA run mode current with peripherals, 4 mA wait mode current), but the case is QFN48 and therefore you have to change the PCB layout.

 

Chase Lighting (Elf Membership Card test program)

Changed:
<
<
>
>
%CODE{c}%
 0000 C0 LBR MOVE 0001 00 0002 03
Line: 212 to 231
 002A 7B SEQ 002B 30 BR LOOP 002C 0C
Changed:
<
<
>
>
%ENDCODE%
  -- Peter Schmid - 2017-11-18
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback