# Visual Basic and PIC 16F628

Status
Not open for further replies.

#### MathGeek

##### Member level 3
pic16f628 + visual basic

I would like to interconnect my computer and 16F628 through RS232. I would like to turn output pins "high" and "low" using the computer. Eventually, I will move onto PWM, etc.

I will be using Visual Basic to program the PC interface.

I think I need max233.

How can I get started on this project? I have been searching for a week now, but I got no clear answer. My biggest problem is programming with assembly 16f628 to use USART.

### MathGeek

Points: 2

#### hugo

##### Full Member level 6
pic aan computer 16f628

MathGeek said:
I would like to interconnect my computer and 16F628 through RS232. I would like to turn output pins "high" and "low" using the computer. Eventually, I will move onto PWM, etc.

I will be using Visual Basic to program the PC interface.

I think I need max233.

How can I get started on this project? I have been searching for a week now, but I got no clear answer. My biggest problem is programming with assembly 16f628 to use USART.

Check this:

https://www.rentron.com/VisualBasic.htm

### MathGeek

Points: 2

#### MathGeek

##### Member level 3
16f628 example basic pwm

Thanks guys.

I am very close to figuring all this out.

I have few things obscure about Visual Basic.

if I write (for 2400 8N1)

Code:
MsComm.output = chr\$(30)

what would be the actual physical out put out of RS232?

Status
Not open for further replies.