Skip to the content
2 layers100 × 70 mmSPLD Test, the printed circuit board in 3D
Size
100 × 70 mm
Copper layers
2
Thickness
1.6 mm
Parts
57
Nets
94
Pads
254
Tracks, vias
681, 71
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
25 Jan 2026
Updated
30 Mar 2026

Overview

SPLD Test is an open-source printed circuit board by ttkpark, from the ttkpark/KicadArtwork repository on GitHub. It is a 2-layer board of 100 × 70 mm with 57 parts on 94 nets, routed with 681 tracks and 71 vias.

It is built around the EA8105T6R, EPM3064ALC44-10N and TP4056-42-ESOP8. Its parts include 31 resistors, 7 diodes, 5 ICs, 5 switches and 4 connectors. It belongs with the STM32 and FPGA and CPLD boards of this library.

Main components

3

README

SPLD_Test/README.md

CPLD-STM32 UI Controller & FND Multiplexer

📌 프로젝트 개요

본 프로젝트는 Altera MAX 3000A(EPM3064) CPLD를 활용하여 메인 MCU(STM32F030)의 부하를 줄이기 위한 하드웨어 UI 컨트롤러를 구현한 설계입니다.
버튼 입력의 디바운싱(Debouncing), 0~31 양방향 카운터, 그리고 4-Digit 7-Segment(FND)의 다이나믹 구동(Multiplexing)을 CPLD 하드웨어 로직으로 분리 처리합니다.

🛠️ 개발 환경 및 하드웨어 사양

  • Target Device: Altera MAX 3000A 계열 (EPM3064ALC44-10)
  • Main MCU: STM32F030
  • IDE: Quartus II 13.0 SP1 Web Edition
  • Clock Source: STM32에서 공급하는 8kHz 외부 클럭 (IO33)

🎯 주요 기능 (Core Features)

  1. 하드웨어 디바운싱 (Debouncing)

    • 8kHz 클럭 기반으로 약 18.7ms 딜레이 필터 구현
    • 버튼 채터링을 소프트웨어 개입 없이 하드웨어에서 차단
  2. 5-bit 양방향 카운터 (0~31)

    • BTN1 입력 시 -1 감소 (0에서 31 순환)
    • BTN2, BTN4 입력 시 +1 증가 (31에서 0 순환)
  3. 경량화된 BCD 변환 로직

    • EPM3064 매크로셀(64) 한계를 고려해 나눗셈/Double Dabble 대신
    • if-else 기반 최적화된 뺄셈 로직으로 10의 자리/1의 자리 분리
  4. FND 다이나믹 멀티플렉싱

    • 8kHz를 32분주하여 약 250Hz로 4자리 Common Anode 순차 구동
  5. 실시간 MCU 상태 보고

    • 카운터 5비트 상태(0~31)를 전용 I/O 핀 5개로 STM32에 비동기 전달

🔌 핀맵 할당 (Pin Mapping)

기능 그룹신호명CPLD 핀 번호비고
Clockclk_8khz33STM32에서 공급받는 8kHz 클럭
Button Inputbtn11-1 감소 (Active Low)
btn22+1 증가 (Active Low)
btn44+1 증가 (Active Low)
MCU Outputmcu_28 ~ mcu_3728, 29, 31, 34, 37카운터 5비트 상태 실시간 출력
FND Segmentseg_a ~ dp5, 6, 8, 9, 11, 12, 14, 167-Segment 제어 (Active Low)
FND Commoncom1 ~ com418, 19, 20, 21자릿수 제어 (Active High)

⚠️ 주의 (하드웨어 핀맵 제약사항)
3번 핀은 VCC와 물리적으로 결선되어 있어 버튼 입력으로 사용하지 않습니다.

🚨 트러블슈팅 및 개발 가이드 (Lessons Learned)

프로젝트 수정/업로드 시 아래 항목을 반드시 확인하세요.

1) 98% 프로그래밍 실패(Verification Failed)

  • 원인: Verify 단계에서 JTAG 핀(TDI, TMS 등)에 연결된 외부 소자(FND 등)가 노이즈를 유발
  • 해결책:
    • 프로그래밍 시 FND 모듈을 일시적으로 탈거한 상태에서 업로드
    • 임시 조치로 Programmer에서 Verify 체크 해제 후 다운로드

2) 미사용 핀 설정 (Unused Pins Configuration)

  • 원인: Quartus 기본값이 미사용 핀을 As output driving ground로 설정해 전원 충돌 가능
  • 해결책:
    • Assignments -> Device -> Device and Pin Options -> Unused Pins
    • 값을 As input tri-stated 로 변경 후 전체 컴파일

3) 디바이스 라이브러리 지원

  • MAX 3000A는 최신 Quartus Prime에서 미지원
  • Quartus II 13.0 SP1 Web Edition 사용
  • Device Installer에서 MAX 3000A 디바이스 팩(.qdz) 추가 설치 필요

📁 저장소 구조(예시)

text
SPLD_Test/
├─ CPLD/          # Quartus 프로젝트/소스
├─ firmware/      # STM32F030 펌웨어 (OLED 모니터)
└─ README.md      # 본 문서

🔗 관련 문서

  • 펌웨어 배선/핀 설명: firmware/docs/CONNECTIONS.md
  • 펌웨어 개발 문서: firmware/docs/DEVELOPMENT.md

🙌 회고

하드웨어 핀맵 충돌, JTAG 간섭, 매크로셀 용량 최적화를 모두 통과해 완성한 프로젝트입니다.
임베디드 하드웨어/펌웨어 협업 개발의 실제 제약과 해법이 담긴 결과물로, 유지보수 시 본 README와 관련 문서를 함께 참고하는 것을 권장합니다.

Parts

57
QtyValueFootprintReferences
141K5Resistor_SMD:R_0603_1608MetricR1, R2, R5, R10, R11, R12, R13, R14, R15, R16, R17, R18, R20, R21
1110kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR22, R23, R24, R25, R26, R27, R28, R29, R30, R31, R32
5REDLED_SMD:LED_0603_1608MetricD3, D4, D5, D7, D8
4SW_MEC_5EButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW2, SW3, SW4, SW5
21kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR6, R8
247uCapacitor_SMD:CP_Elec_6.3x5.7C2, C3
25K1Resistor_SMD:R_0603_1608MetricR3, R4
110uInductor_SMD:L_7.3x7.3_H3.5L1
12.35kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR7
13.7VConnector_Molex:Molex_PicoBlade_53048-0210_1x02_P1.25mm_HorizontalBT1
147uCapacitor_SMD:C_1206_3216MetricC1
176.9RResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR9
1CA56-12CGKWADisplay_7Segment:CA56-12CGKWAU5
1ChargeLED_SMD:LED_0603_1608MetricD1
1EA8105Package_TO_SOT_SMD:SOT-23-6U3
1EPM3064ALC44-10NPackage_LCC:PLCC-44_THT-SocketU4
1Microsemi_FlashPro-JTAG-10Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalJ6
1SPI OLED 1.3inConnector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalJ2
1STM32F030K6TxPackage_QFP:LQFP-32_7x7mm_P0.8mmU2
1SWDConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ4
1SW_SPDTConnector_Molex:Molex_Micro-Fit_3.0_43650-0315_1x03_P3.00mm_VerticalSW1
1StandbyLED_SMD:LED_0603_1608MetricD2
1TP4056-42-ESOP8Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalViasU1
1USB_C_Receptacle_PowerOnly_6PConnector_USB:USB_C_Receptacle_GCT_USB4125-xx-x-0190_6P_TopMnt_HorizontalJ1

More from ttkpark/KicadArtwork

4
  • 2 layers124 × 68.5 mmKalimba, the printed circuit board in 3D

    Kalimba

    ttkpark/KicadArtwork

    35 parts
  • 2 layers129 × 74 mmKalimba, the printed circuit board in 3D

    Kalimba

    ttkpark/KicadArtwork

    34 parts
  • 2 layers100 × 70 mmSPLD Test, the printed circuit board in 3D

    SPLD Test

    ttkpark/KicadArtwork

    29 parts
  • 2 layers124 × 68.5 mmKalimba, the printed circuit board in 3D

    Kalimba

    ttkpark/KicadArtwork

    25 parts

Similar boards

  • 2 layers53.8 × 66 mmFCD-0022, the printed circuit board in 3D

    FCD-0022

    RWeick/GBA-Codebreaker-and-Xploder-SP-FCD-0022

    The full schematic, PCB, and flash dump of the GBA Codebreaker and Xploder SP.

    33 parts6GPL-3.0
  • 2 layers60 × 111.3 mmSilkscreen pcb, the printed circuit board in 3D

    Silkscreen pcb

    iandchasse/silkscreen-pcb

    Silkscreen: open-hardware ESP32-S3 e-paper reader mainboard (KiCad 9). Formerly the de-link hub.

    189 parts589CERN-OHL-S-2.0
  • 2 layers96.8 × 91.4 mmInkbadge, the printed circuit board in 3D

    Inkbadge

    cheyao/inkbadge

    Undercity eink PCB badges controlled by a rp2350

    98 parts22
  • 2 layers51 × 21 mmFOX JACK EXT BOARD TOP, the printed circuit board in 3D

    FOX JACK EXT BOARD TOP

    KaliAssistant/Fox-Jack

    Portable social-engineering LAN tool for automated payloads and wired audits — based on Luckfox Pico Max

    35 parts22GPL-3.0
  • 2 layers31.3 × 67 mmRPBoard², the printed circuit board in 3D

    RPBoard²

    euvalennn/rpboard-squared

    Simple RP2350-based devboard

    63 parts9
  • 4 layers88 × 58 mmECG V-0.2, the printed circuit board in 3D

    ECG V-0.2

    Doenec/ecg-esp32

    open source project ecg with esp32 and ad8232

    115 parts8
  • 2 layers210 × 31 mmTrhw, the printed circuit board in 3D

    Trhw

    nimitvijayvargee/trhw

    This is an RP2040 ruler that implements wifi, bluetooth, BLE along with a 4MB Flash storage, LEDs, Input buttons and some cool units and lengths!

    59 parts8
  • 2 layers78 × 36 mmBt nes advantage pcb, the printed circuit board in 3D

    Bt nes advantage pcb

    cajunpanda/bluetooth-nes-advantage

    A bluetooth mod for the NES Advantage classic controller.

    45 parts7MIT

Questions

How big is the SPLD Test PCB?

It measures 100 × 70 mm and has 2 copper layers, 1.6 mm thick.

What parts does the SPLD Test use?

57 parts, built around the EA8105T6R, EPM3064ALC44-10N and TP4056-42-ESOP8. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the SPLD Test KiCad files?

From the ttkpark/KicadArtwork repository on GitHub, at the commit this page was made from: the board is SPLD_Test/SPLD_Test.kicad_pcb and its schematic SPLD_Test/333/333.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SPLD Test design in my own project?

Its repository states no licence, so its author keeps all rights: ask ttkpark before reusing the design.