Code:
sound portB.6, [120,20]
keep first number below 125, second number is duration. If you are using the Microchip low pin count demo board, be advised the black plastic header does not necessarily go to the pins they appear to.