Yes, the JDM programmer is a popular serial PIC (Peripheral Interface Controller) programmer used for programming Microchip's PIC microcontrollers. It's known for its simplicity and low cost, making it an accessible option for hobbyists and engineers alike.
The JDM programmer typically connects to a computer via a serial port (or USB-to-serial adapter) and uses a few external components, such as resistors and diodes, to create a simple circuit for programming the PIC microcontroller. It typically supports several models of PIC chips, and various software applications can be used to interface with the programmer, such as PICKit or WinPIC.
If you have specific questions about the JDM programmer, whether it’s about its setup, usage, or troubleshooting, feel free to ask!
User
explain why diodes are used in the serial line
Assistant
In the JDM serial PIC programmer, diodes are used for several important reasons related to protecting the circuit and ensuring proper operation during the programming process. Here are the main reasons:
Protection Against Reverse Polarity: Diodes allow current to flow in one direction but block it in the opposite direction. This characteristic helps to protect the circuit from accidental reverse polarity connections, which could damage the microcontroller or the programmer itself.
Voltage Level Clamping: The diodes help to clamp the voltage levels to prevent overvoltage conditions that could damage the PIC microcontroller. During programming, certain levels of voltage must be maintained, and diodes can help limit the voltage to safe levels.
Isolation of Control Signals: The JDM programmer typically uses the serial port’s signals to communicate with the PIC microcontroller. Diodes can isolate these signals to prevent backfeeding of voltages into the serial port, which can be harmful to the computer's serial interface.
Current Flow Management: Diodes can control the flow of current to charge capacitors or power the microcontroller during certain operations without causing a feedback loop or interference from the serial port.
Preventing Overloading: By ensuring that the signals from the computer can only influence the circuit in one direction, diodes prevent any potential feedback or overload conditions that could arise from interactions between the programmer and the microcontroller.
The specific arrangement and number of diodes can vary based on the design of the JDM programmer, but these roles are generally what diodes fulfill in the context of a serial PIC programming setup.
User
what are the voltages for the rs232 lines
Assistant
The RS-232 standard defines a range of voltage levels for the signal lines used in serial communication. Here are the typical voltage levels associated with RS-232:
Logical "1" (Mark State):
A high voltage typically represents a logical "1" (also referred to as the mark state). The voltage level for this state is often in the range of +3V to +15V.
Logical "0" (Space State):
A low voltage typically represents a logical "0" (also referred to as the space state). The voltage level for this state is usually in the range of -3V to -15V.
Signal Levels:
The standard specifies that the voltage levels should be at least ±3V for the states to be considered valid. This means that any voltage more positive than +3V is read as a logical "1," and any voltage more negative than -3V is read as a logical "0."
Idle State:
When no data is being transferred (idle state), the line is typically held at a voltage level that represents a logical "1" (mark state).
Summary of Voltage Levels:
Logical "1" (Mark): +3V to +15V
Logical "0" (Space): -3V to -15V
Minimum Voltage for Valid State: ±3V (i.e., above +3V for "1" and below -3V for "0")
It's important to note that while these voltage levels are standard, actual implementations can vary slightly among devices, and RS-232 communication is often done at lower voltage levels (e.g., around +12V or -12V) for long-distance signaling and robustness against noise.
User
what happen between -3v and +3v
Assistant
In the context of RS-232 serial communication, the voltage levels between -3V and +3V are considered "undefined" or "fault" levels. Here's what this means:
Indeterminate State:
When the voltage is between -3V and +3V, it does not correspond to a valid logical "0" (space) or logical "1" (mark). As such, the receiver may not be able to determine if it is interpreting a logical high or low condition. This can lead to unpredictable behavior in communication.
Noise Susceptibility:
Signals within this region are more susceptible to noise, which can lead to erroneous data interpretation. If the voltage fluctuates within this range due to interference or signal degradation, it can cause communication errors.
Signal Integrity:
Properly designed RS-232 communication systems ensure that the voltage levels stay well outside this indeterminate range to maintain signal integrity. Thus, devices should not operate in, nor should they be expected to function correctly when the signal voltages fall within this range.
Transitional Phase:
During transitions (switching between states, signaling data), voltages may briefly fall within this indeterminate range. The timing and duration of such transitions may need to be controlled to avoid misinterpretation of the signal.
In summary, voltages falling between -3V and +3V in RS-232 communication should be avoided as they do not represent valid signal states and can lead to miscommunication or erroneous data analysis. Systems are designed to ensure that voltages are clearly above +3V or below -3V to ensure reliable communication.
User
in the jdm pic programmer what is the purpose of the 12Volt zener between txd and rts connections of the rs232 port
Assistant
In the JDM PIC programmer, the 12V Zener diode placed between the TXD (transmit data) and RTS (request to send) connections of the RS-232 port serves an important purpose related to voltage level regulation and protection. Here are the key functions of this Zener diode in that configuration:
Voltage Regulation:
The Zener diode helps ensure that the voltage supplied to the PIC microcontroller for programming does not exceed a certain level. In the context of the JDM programmer, the programmer usually requires a 12V supply for the PIC microcontroller. The Zener diode clamps the voltage to approximately 12V, preventing any higher voltage from reaching the microcontroller, which could potentially damage it.
Voltage Dropping:
The Zener diode effectively provides a regulated voltage drop from the RS-232's higher voltage levels to the level that the PIC microcontroller can safely handle. This is crucial because the RS-232 standard can output higher voltages (typically up to ±15V), and directly connecting those to the PIC could cause damage.
Signal Isolation:
During programming, the Zener diode can help isolate the microcontroller from higher voltages coming from the RS-232 lines, which ensures that the microcontroller operates within its specified voltage range.
Protection Against Transients:
The Zener diode acts as a protective element that can absorb voltage spikes or transients that might occur on the RS-232 lines. Such spikes could be caused by various factors, including electrical noise or switching transients in the environment.
Facilitation of Programming:
The combination of the Zener diode and the overall circuit design allows the programmer to use the TXD and RTS lines of the RS-232 interface to control the programming process of the PIC microcontroller, including providing the necessary voltage levels for programming, erasing, and reading operations.
By maintaining the voltage at a safe level for the PIC microcontroller and protecting it from over-voltage conditions, the Zener diode is an essential component for the reliable operation of the JDM PIC programmer.
User
what is the rts logic levels
Assistant
In the context of RS-232 serial communication, the RTS (Request to Send) line is one of the control signals used to manage the flow of data between devices. The logic levels for the RTS line, according to the RS-232 standard, are as follows:
Logical "1" (Mark State):
When the RTS signal is in the high state (logical "1"), it corresponds to a voltage level of +3V to +15V. This indicates that the device is ready to send data.
Logical "0" (Space State):
When the RTS signal is in the low state (logical "0"), it corresponds to a voltage level of -3V to -15V. This indicates that the device is not ready to send data.
Summary of RTS Logic Levels:
Logical "1" (Ready to Send): +3V to +15V
Logical "0" (Not Ready to Send): -3V to -15V
Additional Notes:
The RTS line is typically used in hardware flow control where a device (like a computer) indicates to another device (like a modem or microcontroller) that it is ready to transmit data. The receiving device can then assert or deassert its own control signals (like CTS - Clear to Send) based on the RTS signal.
The voltage levels specified by RS-232 are relatively high compared to modern logic levels (like TTL and CMOS), which operate at 0V to 5V or 0V to 3.3V, making RS-232 communication susceptible to longer distances and noise in typical environments.
In implementations where the RTS line is used with devices that may not support RS-232 levels (like microcontrollers), level-shifting techniques or circuits (like the JDM programmer with Zener diodes) are often used to adapt these signals to lower voltage levels.
User
LPT1 pic programmer common issues
Assistant
Using an LPT1 (parallel port) PIC programmer can present several common issues as typical challenges related to hardware compatibility, software configuration, and electrical connections. Here are some common issues users may encounter when working with LPT1 PIC programmers, along with possible solutions:
Common Issues and Solutions:
Parallel Port Not Recognized:
Problem: The computer may not recognize the parallel port, especially in modern systems that often lack parallel port support.
Solution: Ensure the computer's BIOS settings have the parallel port enabled. If using a USB-to-parallel adapter, confirm that it is compatible with the programming software.
Incorrect Wiring/Connections:
Problem: Miswired connections can prevent the programmer from working properly, leading to failed programming attempts.
Solution: Double-check the wiring according to the programmer's schematic. Use a multimeter to verify connections before powering on the circuit.
Wrong Driver or Software Configuration:
Problem: In some cases, the programming software may have incorrect settings for the LPT port or the specific PIC model.
Solution: Verify that the correct drivers for the programming software are installed. Also, check that the software is configured to use the correct port and device type.
Inadequate Power Supply:
Problem: The PIC microcontroller may not receive adequate power during the programming process, leading to failures.
Solution: Ensure that the programmer circuit provides the necessary voltage and current for the PIC microcontroller. Use a proper power source that meets the voltage requirements.
Voltage Level Issues:
Problem: The LPT port outputs different voltage levels compared to what the PIC microcontroller requires, leading to inconsistencies.
Solution: Ensure that appropriate level shifters or voltage regulators are in place where necessary. Check if the programmer is designed for low-voltage PICs or requires additional components.
Timing Issues:
Problem: If the timing of the signals from the parallel port is not correctly managed, it could result in programming errors.
User
can you provide me LPT1 pic programmer names?
Assistant
Certainly! There are several LPT1 (parallel port) PIC programmers that enthusiasts and developers have used over the years. Here are some notable examples:
Pic Programmer (GP-USB):
This is a generic name often used for various LPT1-based PIC programming designs available on the internet. Many schematics and designs fall under this category.
Microchip PICSTART Plus:
While not exclusively an LPT1 programmer, it was one of the early tools used for programming PIC microcontrollers and supports programming via parallel port.
WinPIC:
WinPIC is a popular programming software that works with various homebrew LPT1 PIC programmers. Its software is often used in conjunction with DIY customer-built circuits.
PIC Programmer 16F877:
This is often a reference to a variety of homebuilt parallel port programmers designed for the PIC16F877 and similar devices.
PIC16 Programmer (by Maxx):
A simple design intended for programming many of the PIC16 series microcontrollers using the parallel port.
MPLAB ICSP Programmer:
The older versions of Microchip’s MPLAB Integrated Development Environment (IDE) included support for parallel port programming in some versions, particularly when integrating with certain programmers or external circuits.
JDM Programmer:
While primarily known as a serial programmer, some variations of the JDM programmer design were adapted for use with the parallel port.
PIC-USB (various clone designs):
Various designs that allow parallel programming of PICs that connect to the LPT port.
Homebrew Designs: Many hobbyists and developers have created their designs for LPT1 PIC programmers that are shared across various electronics forums, hobbyist sites, and websites like the PICProject or Electronics-lab.
Note:
While many of these programmers exist, it's essential to verify compatibility with the specific PIC microcontroller that you intend to program. Additionally, much of the development has shifted toward USB and ICSP (In-Circuit Serial Programming) methods in recent years, leading to a decline in the use of parallel port programmers. Always check the community forums and user feedback regarding the reliability and ease of use of any particular LPT1 programmer design.
User
logic level of LPT1
Assistant
The logic levels for the LPT1 (parallel port) standard, which is based on the IEEE 1284 standard for parallel communications, generally follow this outline:
Logic Levels for LPT1 (Parallel Port)
Logical "1" (High State):
Voltage level: Typically in the range of +2.0V to +5.0V.
The specific high level usually depends on the connected devices, but logic "1" is generally considered to occur when the voltage is above +2V, with +5V being typical for TTL logic.
Logical "0" (Low State):
Voltage level: Typically in the range of 0V to +0.5V.
Logic "0" is defined as any voltage that is low enough to be interpreted as a logic low, generally near ground (0V).
Operation Modes
The LPT1 port operates in various modes (like standard, nibble, and ECP modes), but the logic levels remain similar across these modes.
Specific Considerations
TTL Logic: The LPT1 port operates based on TTL (Transistor-Transistor Logic) levels, which means that devices expecting TTL levels (+0V to +5V) should be compatible with the LPT port.
Active Signals: Depending on the specific implementation and the function of each data/control pin, the active logic level might vary. For instance:
Pins configured as outputs may indicate a high state when driving a signal and low when not.
Configuration may cause some pins to be active low or high based on the specific application or programming logic.
Signal Integrity: Due to the nature of parallel communication, signals can bounce if not properly managed, so good design practices must be followed to ensure reliable communication.
Summary
Logical "1": +2.0V to +5.0V
Logical "0": 0V to +0.5V
If you're interfacing the LPT1 port with other devices (like a PIC microcontroller in a programming situation), it's essential to ensure that the voltage levels are compatible and that appropriate level-shifting techniques or logic level converters are used if necessary.
User
is LPT1 still in use in modern computer?
Assistant
As of my last knowledge update in October 2023, the LPT1 (parallel port) is largely considered obsolete in most modern computers and computing environments. Here’s an overview of the current situation regarding LPT1 usage:
Decline of LPT1 Usage
Modern Hardware:
Most modern computers, particularly laptops and compact desktops, do not come with built-in parallel (LPT) ports. Manufacturers have increasingly moved towards USB and other more efficient interfaces due to their widespread acceptance, ease of use, and support for higher data transfer rates.
Legacy Support:
Certain legacy systems, industrial equipment, or dedicated applications (like some printers and older instrumentation) may still rely on LPT1 ports, but these are becoming increasingly rare. Such equipment is more often found in specialized or legacy work environments.
Adoption of USB:
USB (Universal Serial Bus) has become the standard for connecting peripherals, including printers, scanners, and other devices. There are USB-to-parallel adapters available, which allow parallel devices to connect to USB ports, but these come with varying levels of compatibility and may not fully support all parallel port functionalities.
Operating System Support:
Modern operating systems may not include native drivers or support for parallel ports, making it more challenging to use LPT1 for programming or controlling devices without the necessary drivers or support.
Alternative Solutions:
Many applications that once utilized parallel ports have transitioned to using serial ports (UART), USB, Ethernet, or wireless communication protocols. Microcontrollers and development boards now typically feature USB or Ethernet interfaces.
Conclusion
While LPT1 ports are not commonly found in modern computing devices, they still exist in specialized environments or older hardware. For most users and in most applications today, USB and other modern interfaces have taken the lead due to their versatility, speed, and ease of use. If you need to work with LPT1 devices, you may need to use legacy hardware, adapters, or emulators designed to bridge the gap between older parallel port applications and modern computing environments.
User
I have nvidia graphic card with sound integrate through the hdmi port. I have lot of sound noise coming out. How do i solve this issue knowing that i running windows 10 os.
Assistant
If you're experiencing sound noise through the HDMI output from an NVIDIA graphics card on Windows 10, here are some steps you can take to troubleshoot and potentially fix the issue:
1. Check Physical Connections
Secure Connections: Ensure that the HDMI cable is securely connected to both the graphics card and the display device (TV or monitor). Sometimes, a loose connection can cause sound problems.
Try a Different Cable: If possible, test with a different HDMI cable to rule out cable issues.
2. Update Drivers
NVIDIA Graphics Driver: Ensure your NVIDIA graphics drivers are up to date. You can do this through NVIDIA GeForce Experience or by downloading the latest driver from the NVIDIA website.
Audio Drivers: Update your audio drivers through Windows Device Manager:
Right-click on the Start button and select Device Manager.
Expand the Sound, video, and game controllers section.
Right-click on your HDMI audio device and select Update driver.
Choose Search automatically for updated driver software.
3. Change Default Audio Device
Ensure that the HDMI audio output is set as the default playback device:
Right-click the sound icon in the system tray and select Sounds.
Go to the Playback tab.
Find your HDMI output device, right-click it, and select Set as Default Device.
4. Adjust Sample Rate and Bit Depth
Changing the audio format may help in eliminating noise:
Right-click the sound icon in the system tray and select Sounds.
Go to the Playback tab, right-click the HDMI device, and select Properties.
Go to the Advanced tab.
Under Default Format, try adjusting the sample rate and bit depth. Common options include 16-bit, 44100 Hz or 24-bit, 48000 Hz. Test each option by clicking Test.
5. Disable Audio Enhancements
User
in windows 10, how do i get access to the hdmi port
Assistant
To access and configure the HDMI port on your Windows 10 system for audio and video output, you can follow these steps:
1. Connect Your HDMI Device
First, connect your HDMI cable from your computer (or laptop) to the HDMI port on the display device (TV, monitor, etc.). Make sure both devices are powered on.
2. Setting Up the Display in Windows 10
After connecting the HDMI device, you can manage the display settings:
Right-click on the Desktop:
Right-click anywhere on the desktop and select Display settings from the context menu.
Detect the HDMI Display:
In the Display settings window, scroll down to the Multiple displays section.
Click on Detect if the external display (connected via HDMI) is not automatically recognized.
Configure Display Options:
If the display is detected, you can choose how you want to use it:
Duplicate: Show the same screen on both the laptop and the external display.
Extend: Extend your desktop across both screens.
Second screen only: Use only the external display and turn off the laptop screen.
Select your desired option from the dropdown menu.
3. Select the HDMI Output for Audio
To ensure that audio is routed through the HDMI connection, follow these steps:
Right-click on the Sound Icon:
In the system tray (bottom-right corner of your screen), right-click on the sound icon.
Open Sound Settings:
Select Sounds or Open Sound settings from the context menu.
Access Playback Devices:
If you selected Sounds, go to the Playback tab. If you selected Open Sound settings, scroll down and click on Sound control panel under the Related Settings section on the right.
Set HDMI as Default Playback Device:
Not yet included in a published release.
Solution: Some software allows users to adjust timing parameters. Review the documentation and consider adjusting these values.
Software Compatibility Issues:
Problem: The programming software may be incompatible with the specific PIC microcontroller or the operating system.
Solution: Check for software updates or use different programming software known to work with the specific model of PIC microcontroller.
Environmental Interference:
Problem: Electromagnetic interference (EMI) or a noisy environment can cause issues during programming.
Solution: Work in a clean, low-noise environment and ensure good grounding practices are followed. Use shielded cables if necessary.
Defective Components:
Problem: The PIC microcontroller or the programmer circuit may have defective components, leading to failures in programming.
Solution: Test the microcontroller in another circuit or device and check the programmer components for faults. Replace any defective parts as needed.
Conclusion
When troubleshooting issues with an LPT1 PIC programmer, it's essential to systematically check each aspect of the hardware and software setup. Often, documentation and community forums dedicated to the specific programming hardware can provide additional insights or known fixes for common problems.
Sometimes audio enhancements can cause issues:
Right-click the HDMI device in the Playback tab and select Properties.
Go to the Enhancements tab.
Check the box for Disable all enhancements and click OK.
6. Check for Windows Updates
Ensure your Windows 10 installation is fully updated, as updates can provide fixes for various issues:
Go to Settings > Update & Security > Windows Update.
Click Check for updates.
7. Test Different Audio Playback Software
The issue may not be hardware-related but rather a software issue. Try using different audio playback software (e.g., VLC, Windows Media Player) to see if the noise persists.
8. Check for Interference
Ensure there’s no electromagnetic interference from other devices which could affect audio quality. You might want to try moving devices away from each other or switching outlets.
9. Use a Different Audio Output
If issues persist with HDMI, consider using a separate audio output (like headphones or speakers connected to the audio jack) as a temporary solution.
10. Check the Display Device
If you're using a TV as a monitor, check its audio settings. Sometimes, certain settings on the TV can affect the audio quality.
Conclusion
If you have gone through all these steps and the problem still exists, it might be worth considering hardware issues with the graphics card or the HDMI output on your display. You can also check user forums or contact NVIDIA support for more specialized assistance.
In the Playback tab, look for your HDMI output device (it might be labeled with the name of your TV or "HDMI").
Right-click on the HDMI device and select Set as Default Device. You may also want to set it as Default Communication Device for audio calls or communications.
Test the Audio:
Click on the HDMI device and then click the Test button to check if the audio is working properly.
4. Adjust Display Settings if Necessary
If the output is not appearing as expected, you may also want to adjust the resolution or orientation settings for the external display to ensure the best compatibility.
Troubleshooting Tips
Check HDMI Cable: Ensure the HDMI cable is plugged in securely and is functioning properly.
Update Drivers: Make sure your graphics drivers are up to date, as outdated drivers can cause issues with HDMI output.
Check Display Input Source: Ensure that your external display is set to the correct input source (e.g., HDMI).
Conclusion
Following these steps should allow you to access and configure the HDMI port on your Windows 10 device for both video and audio output. If you continue having issues, consider checking your hardware compatibility or looking into the specific settings of your graphics card.