Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Sample Electronics programmer not working in Win 7
Goto page Previous  1, 2, 3, 4  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
camelot2

Bascom Member



Joined: 18 Nov 2007
Posts: 37
Location: New Jersey, USA

usa.gif
PostPosted: Thu May 16, 2013 4:44 pm    Post subject: Reply with quote

hi Mark
My computer has Win 7 Pro and the MB has
2 - PCI card slots
1 - PCI Express x1 card slot
1 - PCI Express x16 graphics card slot

My card is a SIIG CyberParallel PCI and has
one parallel port. The manual says the following
Conforms to PCI v2.2 Plug and Play
Supports 32/64-bit, 3.3v/5v PCI and PCI-X slots
Supports EPP/ECP,BPP (bi-directional), SPP (standard)
parallel port modes
This card is installed in one of the PCI card slots on the MB
awaiting your results and fix - Davehi Mark
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Mon May 20, 2013 12:29 pm    Post subject: Reply with quote

Hi Mark,

Last year I spent some time trying to find out what was wrong with
tvicport64.sys on W7 64-bit and my conclusion was that the driver did
not have a valid digital signature and therefore was not properly
installed during the setup. At the end, the thread was moved to
the folder "Various" and the discussion died there. LINK

Best regards,

Luciano
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Mon May 20, 2013 1:12 pm    Post subject: Reply with quote

when the other thread started i had no pc with win7 64 bit with slots for an IO card.
while i think USB is the way to go, LPT is still used so that is why i did not removed it from bascom. And when it is included it should work.

i got an update of the driver and that one is signed. you can test it with the file i uploaded to the forum.
i tried installing on both w7 and w8 and it installed properly. So that is not longer an issue.
I could not buy an IO card from a computer shop(seems they only sell computers these days) so i bought one from ebay.
I will try it when i get it.

_________________
Mark
Back to top
View user's profile Visit poster's website
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Mon May 20, 2013 1:43 pm    Post subject: Reply with quote

Hi Mark,

I use an EX-41150 PCI card made by Exsys with two serial ports and one parallel port. LINK
Datasheet: LINK

You can order it from Distrelec (NL): LINK

Distrelec part number: 863224

Best regards,

Luciano
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Mon May 20, 2013 1:50 pm    Post subject: Reply with quote

yes i can order from conrad too. but it used to be normal that a computer shop would sell them. i guess that is history Wink

I bought this one : http://www.ebay.nl/itm/PCI-Parallel-Serial-Card-IEEE1284-RS232-LPT-RS-232-I-O-/230496136481?pt=UK_Computing_ComputerComponents_InterfaceCards&hash=item35aaa3ed21
it is new with a moschip.

_________________
Mark
Back to top
View user's profile Visit poster's website
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Mon May 20, 2013 2:11 pm    Post subject: Reply with quote

Hi Mark,

You need a card with a brand name and model number so that you can
test it with Bascom and recommend it to your customers.
On the Exsys web site you can download the driver and manual
and you can order the card from Distrelec which is a good supplier
in Europe. LINK

Best regards,

Luciano
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Mon May 20, 2013 5:48 pm    Post subject: Reply with quote

Hi Mark,

I have tested with the Bascom full setup (2.0.7.6) and after setup
and reboot I get this error in the Windows system log:
(Which is the same error as last year).

=======================================
Windows 7 64-bit Ultimate (English)

Event ID:7000, Service control Manager

The TVicPort service failed to start due to the following error:
The system cannot find the file specified.
=======================================

After running setup.exe as admin (Bascom 2.0.7.6 full) and
selecting "Parallel Port Support driver" the file TVicPort64.sys
is "visible" here:

(File size 16080 bytes, file version: 5.2.1.0).

C:\Windows\System32\drivers\TVicPort64.sys
C:\Windows\SysWOW64\drivers\TVicPort64.sys

=======================================

In the Windows Registry the setup program has written the
key TVicPort in 3 locations (see below) but the name of
the file TVicPort64.sys (& path) is missing from the Windows
registry. If the path and the file name is missing, it is normal
that you get the above error from the Service control Manager.

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\TVicPort
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\TVicPort
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TVicPort

These are the subkeys present in the above 3 keys:

Value 0
Name: Type
Type: REG_DWORD
Data: 0x1

Value 1
Name: Start
Type: REG_DWORD
Data: 0x2

Value 2
Name: ErrorControl
Type: REG_DWORD
Data: 0x1

Value 3
Name: Group
Type: REG_SZ
Data: Extended Base

Value 4
Name: Parameters
Type: REG_SZ
Data:

=======================================

Best regards,

Luciano
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Mon May 20, 2013 10:28 pm    Post subject: Reply with quote

Luciano wrote:

You need a card with a brand name and model number so that you can
test it with Bascom and recommend it to your customers.
Luciano


No it is not my task to select and recommend cards. I will only make sure the software works. Since i had good experience with MOSCHIP based cards i selected one. The problem is that all cards have a different resource address. So while i could add some screen shots with the base address, the same card could have a different address on another PC.
The only thing i can recommend is to use an USB programmer Very Happy

You must not use the bascom setup, you must download the installer from this thread that i uploaded. That one contains the newer files.

_________________
Mark
Back to top
View user's profile Visit poster's website
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Tue May 21, 2013 11:03 am    Post subject: Reply with quote

Hi Mark,

Everything working now, thank you!

This is what I have done on my Windows 7 Ultimate 64-bit system:

(The driver problem will be solved in Bascom 2.0.7.7, no need to do the
steps below if you are installing Bascom 2.0.7.7 or greater).

- Uninstalled Bascom 2.0.7.6.

- Rebooted the PC. (After rebooting the registry was OK, no old TVicPort keys present).

- Installed as admin Bascom 2.0.7.6 without selecting "Parallel Port Support driver".

- Rebooted the PC. (After rebooting the registry was OK, no TVicPort keys present).

- Copied the file setupio.exe in the Bascom program folder and installed it from there as admin.

The used file setupio.zip/setupio.exe can be downloaded from this post: LINK
Login to see it, if you don't see the file after login, press the refresh button of your browser.
After unzip, the size of the file setupio.exe is 380877 bytes.

- Rebooted the PC.

* * * * *

Results:

No more errors in the Windows system Log and the registry keys for the service TVicPort
look like much better now and most important, it is working as expected!

Below are some pictures how to configure and test the parallel port. I am not using
the parallel port to program the chips, so I have only tested if Bascom can drive the
pins of the parallel port. (Login to see the pictures, if you don't see the pictures after
login, press the refresh button of your browser).

The used PCI card is the EX-41150 card made by Exsys, more details in this message: LINK
(Chip-Set: MosChip MCS9835CV)

The test (picture below) was performed with and without a pull-down resistor of 4.7k. Without
the resistor, when the pin was set to "1" the voltage was 4.97V, with the resistor (a load of 4,7k)
the voltage was 4.93V. When the pin was set to "0" (reset) the voltage was 0V with and
without the pull-down resistor.

Thank you again!

Best regards,

Luciano
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Tue May 21, 2013 11:35 am    Post subject: Reply with quote

thanks for testing and the excellent pictures.
in 2077 the bascom setup will also install the driver like this when you chose to do so.

maybe the IO card need some specific BIOS settings. I will check that later.

_________________
Mark
Back to top
View user's profile Visit poster's website
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Tue May 21, 2013 2:29 pm    Post subject: Reply with quote

Hi Mark,

The BIOS of the motherboard does not have an interface where you can change the default
transfer mode (SPP/EPP/ECP) of a PCI parallel port card installed in a PCI slot. (Only
the parallel port natively present on the motherboard has an interface in the BIOS).

Regardless of the supported transfer mode of the card (EPP/ECP), the card will also
support the SPP mode which is what you are using to drive the ISP programmers.

Best regards,

Luciano

========================
EDIT:

I have downloaded and installed the latest driver for my PCI card
(Chip-Set MosChip MCS9835CV) from Asix (link) which is the official
supplier of the drivers for the MosChip Semiconductor chips. To find
the driver I just entered the model of my chip (MCS9835CV) in the
search engine present on the main page of the web site.

(Windows 7 64-bit)

File name: MCS98xx_Windows_64bit_Driver_v2.0.3.0_WHCK_Binary.zip

Driver version: 2.0.3.0
Release Date: 2012-12-18

After the update of the MosChip driver, everything is still working fine
with Bascom as it was already before with the old driver version 2.0.0.18.

* * *
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Tue May 21, 2013 10:26 pm    Post subject: Reply with quote

While searching for cards i have read about problems and solutions and i found a remark about BIOS settings. I do not want to shut down my PC yet so i can only tell after i have installed the card.
It had to do with disabling legacy ports in order to make the IO card work. I only wondered why adding an IO when having a legacy port. Or maybe it is in the BIOS setting even while not on board?
Anyway since you have a MOS chip it is a good reference. I will only check if programming actual works.

_________________
Mark
Back to top
View user's profile Visit poster's website
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Wed May 22, 2013 10:21 am    Post subject: Reply with quote

Hi Mark,

The BIOS, PCI bus and OS will automatically take care to assign addresses
to the PCI card when the PC is powered on and the OS booted. With Bascom
you are using the card in SPP mode so the address of the SPP registers can be
anywhere. (You only need the address of the SPP registers and you can completely
ignore the address of the EPP/ECP registers). The BIOS/OS will automatically
assign an address to all the registers of the card, but because the EPP/ECP
registers must have an address located at +400h of the base address of
the SPP registers, if the address of the EPP/ECP registers is somewhere else,
the card will be recognized and work only in SPP mode under Windows 7/8.

Below is a picture with all the settings of my card.

(Login to see the pictures, if you don't see the pictures after
login, press the refresh button of your browser).

Best regards,

Luciano

* * * *

From the Asix (MosChip) web site: LINK

Q0010: Is it possible to remap the I/O addresses of MCS98xx Parallel/Serial ports to Legacy I/O address values?

A0010: In order to be compatible with some legacy software, some users might need to remap the assigned I/O addresses of MCS98xx Parallel/Serial ports to Legacy (ISA type) I/O address (such as 378h, 3F8h, etc.). It is possible on DOS and Windows 95/98/ME operating systems but impossible on Windows NT/2000/XP/Vista/7/8 operating systems because the Remap I/O Address feature is only supported on DOS and Windows 95/98/ME operating systems but is not supported on Windows NT/2000/XP/Vista/7/8 operating systems. As the newer Windows systems maintain a much tighter control over the I/O devices and prevent any Re-Mapping I/O Address operation at device driver level. When the Re-Mapping I/O Address is not permitted, the device must use the I/O Addresses assigned by the PCI system at Boot-Up. If the software application expects the Parallel/Serial ports to use Legacy I/O address resources, it will not be possible to make it work with the Parallel/Serial ports of PCI based devices on Windows NT/2000/XP/Vista/7/8 platforms. On DOS platform, MCS98xx can remap the I/O addresses of the Parallel/Serial ports to desired values by running MCS98xx DOS utility. However, on Windows 95/98/ME platforms, you can only remap the I/O addresses of the Serial ports (but not Parallel port).


Q0011: Can I manually force MCS98xx parallel port at a specific LPT mode (such as EPP, ECP, etc.)?

A0011: Only the MCS98xx DOS and Windows NT drivers have a mechanism to manually select the desired LPT Mode for MCS98xx Parallel port. The Windows systems are supposed to be able to auto-switch to a proper LPT mode for PCI based parallel port devices. Unfortunately, this LPT mode automatic switching functionality does not work very well with PCI based Parallel port devices on Windows systems. MCS98xx can support SPP and PS/2 Modes without any problems. The EPP and ECP modes supporting varies from machine to machine and depends on the Operating System being used. Both EPP and ECP modes require two banks of Standard/Extended registers to control the standard/enhanced functionality of MCS98xx Parallel port. The base address of 2nd bank Extended registers must be equal to "the base address of 1st bank Standard registers + 400h" to meet the IEEE-1284 standard specification. Unfortunately, the PCI specification does not make any guarantees that two resource requests will have any specific relationship to each other. We request the two banks with the desired offset, but the system does not always honor those requests, and often returns the extended register bank at some entirely different address than what we requested. When this occurs, neither EPP nor ECP Mode will be workable. For this reason, some software (including Device Drivers for Printers etc.) will not work with MCS98xx PCI based Parallel port.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Sun Jun 09, 2013 12:19 pm    Post subject: Reply with quote

Ok, i had to reboot my PC so i installed the card.
I had to download the newest driver which i attached.
The screens are similar to that of Luciano.
I tried the stk200 and it worked well. could not find the sample electronics programmer so quick but since it shares code, it will work as well.

I bought this one : http://www.ebay.nl/itm/230496136481?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649
Now i have 2 more COM ports and an LPT port Very Happy

_________________
Mark
Back to top
View user's profile Visit poster's website
sanup2006

Bascom Member



Joined: 31 Jul 2013
Posts: 3

PostPosted: Sat Aug 03, 2013 9:24 pm    Post subject: Reply with quote

who have setupio.exe ????
please give me link


i have an error that must istall setupio.exe in bascom folder
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum