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
29
Nets
75
Pads
165
Tracks, vias
440, 27
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 29 parts on 75 nets, routed with 440 tracks and 27 vias.

It is built around the EPM3064ALC44-10N. Its parts include 19 resistors, 4 switches, 3 ICs and 3 connectors. It belongs with the STM32 and FPGA and CPLD boards of this library.

Main components

1

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

29
QtyValueFootprintReferences
1110kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11
61K5Resistor_SMD:R_0603_1608MetricR14, R15, R16, R17, R18, R19
3SW_MEC_5EButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW1, SW2, SW3
21kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR12, R13
1CA56-12CGKWADisplay_7Segment:CA56-12CGKWAU1
1EPM3064ALC44-10NPackage_LCC:PLCC-44_THT-SocketU2
1Microsemi_FlashPro-JTAG-10Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalJ1
1SPI OLEDConnector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalJ2
1STM32F030K6TxPackage_QFP:LQFP-32_7x7mm_P0.8mmU3
1SWDConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ3
1SW_SPSTButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW4

More from ttkpark/KicadArtwork

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

    SPLD Test

    ttkpark/KicadArtwork

    57 parts
  • 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 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 layers52.3 × 10.5 mmStackLink, the printed circuit board in 3D

    StackLink

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    29 parts5.1kGPL-3.0
  • 2 layers56 × 20 mmHallEffectXY Endstop, the printed circuit board in 3D

    HallEffectXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    29 parts1.1kGPL-3.0
  • 2 layers50 × 23.2 mmAnalog, the printed circuit board in 3D

    Analog

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    29 parts1kGPL-3.0
  • 2 layers16.8 × 13.6 mmE Fidget Lite, the printed circuit board in 3D

    E Fidget Lite

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    29 parts915
  • 2 layers85 × 12.5 mmTERES PCB3-TOUCH BTN Rev.A, the printed circuit board in 3D

    TERES PCB3-TOUCH BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    29 parts578Apache-2.0
  • 2 layers33.7 × 97.8 mmHAN ESP TSS721, the printed circuit board in 3D

    HAN ESP TSS721

    UtilitechAS/amsreader-firmware

    ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

    29 parts470
  • 2 layers80 × 55 mmGB CARTPP XC, the printed circuit board in 3D

    GB CARTPP XC

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    29 parts379CC-BY-4.0

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?

29 parts, built around the EPM3064ALC44-10N. 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/easy/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.