Difference between revisions of "KFLOP Hardware Info"

From Dynomotion

Jump to: navigation, search
(KFLOP Input Filters)
(KFLOP Inputs Floating High)
 
(One intermediate revision by one other user not shown)
Line 27: Line 27:
 
|}
 
|}
  
==KFLOP Input Filters==
+
==Hardware Topics==
KFLOP inputs are very fast and therefore susceptible to narrow noise glitches.  KFLOP doesn't have selectable digital filteringIt is usually best to fix the source of the problem in hardwareOtherwise you might reduce the frequency of the problem but not eliminate it entirelyYou might add a Filter Capacitor (such as a 0.1uf ceramic capacitor) from the KFLOP input pin to the KFLOP GND (in very close proximity to KFLOP)<br /><br />To filter the inputs in software you can do so with a User Program that samples the input, performs some filtering algorithm, and sets/clears a KFLOP Virtual I/O Bit (ie bits 48-63) based on the result.   Then configure the KFLOP Axis to monitor the Virtual Inputs rather than the real inputs.   The ExternalButtons.c example shows how multiple inputs can be monitored and debounced using a single non-blocking loop using a state driven approachSee the Debounce() function, how its used, and the 3 global variables needed for every input to keep track of the states of the input.
+
[[Noise - Typical Problems and Resolutions|Dealing with noise using KFLOP input filters]]
 +
 
 +
 
 +
 
 +
==KFLOP Inputs Floating High==
 +
A common question is:    '''''"I don't have a KFLOP Input Connected to anythingWhy is it reading high?"'''''
 +
 
 +
If a KFLOP input is not connected then it may float to any voltageKFLOP inputs (those without pull down resistors) are very high impedance (many megohms).   The slightest leakage current due to moisture, parasitic inductance, capacitance, etc can make the voltage non zero.  Often a ribbon cable will cause one floating input to follow an adjacent signal in the cable that is being driven.
 +
 
 +
 
 +
KFLOP inputs are voltage sensitive and require almost zero currentUnlike something like a light bulb that requires significant current and will go to 0V and off if disconnected.  KFLOP Inputs must be driven high (>2.0V) and low (< 0.4V).  If not driven they may be high or low.
 +
 
 +
 
 +
A simple switch can not normally be used to drive a KFLOP input because when the switch is open it will float to any stateAn exception to this is the 16 KFLOP inputs on JP4 and JP5 that have 150ohm pull down resistors.  Those will be guaranteed to be low if disconnected.  So a simple switch to 3.3V might be used to drive those.
 +
 
 +
 
 +
KFLOP inputs are all 3.3V LVTTL and have protection diodes connected to the 3.3V power supply (and GND) to prevent the input from floating too high (from leakage or static electricity) and burning out.  For this reason KFLOP inputs should never be driven higher than 3.8VBecause of the internal construction of the FPGA (where differential pairs share some common circuitry) if an input is driven high enough to be forced to clamp, some clamping current may leak into the complimentary signal pair input.  This should be avoided.

Latest revision as of 19:05, 10 January 2018

KFLOP - DSP-based microcontroller with 1.2 GFLOPs of processing power, a 100k Gate FPGA, 16 Mb SDRAM, 8 axes of control, lots of I/O and the ability to program in C

KFLOP perspective1 400.jpg
Summary

Quick Start/USB Driver Installation

HW/SW Specification

Board Layout

Block Diagram

Hardware/Connector Description

Analog IO Screen Digital IO Screen
Functional Diagram Virtual COM Port Driver Installation

Hardware Topics

Dealing with noise using KFLOP input filters


KFLOP Inputs Floating High

A common question is:    "I don't have a KFLOP Input Connected to anything.  Why is it reading high?"

If a KFLOP input is not connected then it may float to any voltage.  KFLOP inputs (those without pull down resistors) are very high impedance (many megohms).   The slightest leakage current due to moisture, parasitic inductance, capacitance, etc can make the voltage non zero.  Often a ribbon cable will cause one floating input to follow an adjacent signal in the cable that is being driven.


KFLOP inputs are voltage sensitive and require almost zero current.  Unlike something like a light bulb that requires significant current and will go to 0V and off if disconnected.  KFLOP Inputs must be driven high (>2.0V) and low (< 0.4V).  If not driven they may be high or low.


A simple switch can not normally be used to drive a KFLOP input because when the switch is open it will float to any state.  An exception to this is the 16 KFLOP inputs on JP4 and JP5 that have 150ohm pull down resistors.  Those will be guaranteed to be low if disconnected.  So a simple switch to 3.3V might be used to drive those.


KFLOP inputs are all 3.3V LVTTL and have protection diodes connected to the 3.3V power supply (and GND) to prevent the input from floating too high (from leakage or static electricity) and burning out.  For this reason KFLOP inputs should never be driven higher than 3.8V.  Because of the internal construction of the FPGA (where differential pairs share some common circuitry) if an input is driven high enough to be forced to clamp, some clamping current may leak into the complimentary signal pair input.  This should be avoided.